mlr3misc (version 0.1.0)

cross_join: Cross-Join for data.table

Description

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

Usage

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

# NOT RUN {
cross_join(dots = list(sorted = 1:3, b = letters[1:2]))
# }