Learn R Programming

mlr3misc (version 0.15.1)

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)

Value

data.table::data.table().

Arguments

dots

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

sorted

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

unique

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

Examples

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

Run the code above in your browser using DataLab