expand_grid.: Create a data.table from all combinations of inputs

Description Usage Arguments Examples

View source: R/expand_grid.R

Description

Create a data.table from all combinations of inputs

Usage

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

Arguments

...

Variables to get 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

expand_grid.(x, y)

expand_grid.(stuff = x, y)

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