constructive icon indicating copy to clipboard operation
constructive copied to clipboard

duplicate names in data frames and tibbles

Open moodymudskipper opened this issue 1 year ago • 0 comments

constructive::construct(data.frame(a=1, a =2, check.names = FALSE))
#> {constructive} couldn't create code that reproduces perfectly the input
#> ℹ Call `construct_issues()` to inspect the last issues
#> data.frame(a = 1, a = 2)
constructive::construct(tibble::tibble(a=1, a= 2, .name_repair = "none"))
#> ! The code built by {constructive} could not be evaluated.
#> ! Due to error: Column name `a` must not be duplicated.
#> tibble::tibble(a = 1, a = 2)

data table works fine

constructive::construct(data.table::data.table(a=1, a=2))
#> data.table::data.table(a = 1, a = 2)

moodymudskipper avatar Jul 30 '24 18:07 moodymudskipper