A safe version of data.table::CJ() in case a column is called sorted or unique.

cross_join(dots, sorted = TRUE, unique = FALSE)

Arguments

dots

(named list())
Vectors to cross-join.

sorted

(logical(1))
See data.table::CJ().

unique

(logical(1))
See data.table::CJ().

Value

data.table().

Examples

cross_join(dots = list(sorted = 1:3, b = letters[1:2]))