crossing.: Create a data.table from all unique combinations of inputs

Description Usage Arguments Examples

View source: R/crossing.R

Description

crossing.() is similar to expand_grid.() but de-duplicates and sorts its inputs.

Usage

1
crossing.(..., .name_repair = "check_unique")

Arguments

...

Variables to get unique combinations of

.name_repair

Treatment of problematic names. See ?vctrs::vec_as_names for options/details

Examples

1
2
3
4
5
6
x <- 1:2
y <- 1:2

crossing.(x, y)

crossing.(stuff = x, y)

mtfairbanks/gdt documentation built on May 4, 2021, 9:44 a.m.