Generates all combinations of variables found in a dataset.
expand() is useful in conjunction with joins:
use with right_join() to convert implicit missing values to explicit missing values
use with anti_join() to find out which combinations are missing
nesting() is a helper that only finds combinations already present in the dataset.
nesting.(..., .name_repair = "check_unique")Columns to get combinations of
Treatment of duplicate names. See ?vctrs::vec_as_names for options/details