R: Cross-Join for data.table

cross_join {mlr3misc} | R Documentation

## 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

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

[Package mlr3misc version 0.10.0 Index]