Learn R Programming

tidytable (version 0.10.2)

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

Description

Create a data.table from all combinations of inputs

Usage

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

Run this code
x <- 1:2
y <- 1:2

expand_grid(x, y)

expand_grid(stuff = x, y)

Run the code above in your browser using DataLab