powered by
Generates all combinations of variables found in a dataset.
expand.() is useful in conjunction with joins:
expand.()
use with right_join.() to convert implicit missing values to explicit missing values
right_join.()
use with anti_join.() to find out which combinations are missing
anti_join.()
expand.(.df, ..., .name_repair = "check_unique")
A data.frame or data.table
Columns to get combinations of
Treatment of duplicate names. See ?vctrs::vec_as_names for options/details
?vctrs::vec_as_names
# NOT RUN { test_df <- tidytable(x = 1:2, y = 1:2) test_df %>% expand.(x, y) # }
Run the code above in your browser using DataLab