A safe version of data.table::CJ()
in case a column is called
sorted
or unique
.
Arguments
- dots
(named
list()
)
Vectors to cross-join.- sorted
(
logical(1)
)
Seedata.table::CJ()
.- unique
(
logical(1)
)
Seedata.table::CJ()
.
Examples
cross_join(dots = list(sorted = 1:3, b = letters[1:2]))
#> Key: <sorted, b>
#> sorted b
#> <int> <char>
#> 1: 1 a
#> 2: 1 b
#> 3: 2 a
#> 4: 2 b
#> 5: 3 a
#> 6: 3 b