powered by
crossing.() is similar to expand_grid.() but de-duplicates and sorts its inputs.
crossing.()
expand_grid.()
crossing.(..., .name_repair = "check_unique")
Variables to get unique combinations of
Treatment of problematic names. See ?vctrs::vec_as_names for options/details
?vctrs::vec_as_names
x <- 1:2 y <- 1:2 crossing.(x, y) crossing.(stuff = x, y)
Run the code above in your browser using DataLab