This function takes a table, groups it by one or more variables, and then
splits the grouped data into a list. The resulting list has names derived
from the unique combinations of the grouping variables.
Usage
named_group_split(.tbl, ...)
Arguments
- .tbl
A data table or tibble.
- ...
One or more unquoted variables by which to group and then split .tbl
.
Variables can be separated by commas.
Value
A named list of tibbles/data tables, where each item corresponds to a unique combination
of the grouping variables. The names of the list items are derived from the unique
combinations of the grouping variables, separated by " / ".