Constructs a data.table, but one with nice printing features.

tidytable(..., .name_repair = "unique")

Arguments

...

A set of name-value pairs

.name_repair

Treatment of duplicate names. See ?vctrs::vec_as_names for options/details.

Examples

tidytable(x = 1:3, y = c("a", "a", "b"))
#> # A tidytable: 3 × 2
#>       x y    
#>   <int> <chr>
#> 1     1 a    
#> 2     2 a    
#> 3     3 b