Split data frame by groups
Split data frame by groups. Returns a list.
group_split.(.df, ..., .keep = TRUE, .named = FALSE)
.df |
A data.frame or data.table |
... |
Columns to group and split by. |
.keep |
Should the grouping columns be kept |
.named |
Should the list be named with labels that identify the group |
test_df <- tidytable( a = 1:3, b = 1:3, c = c("a","a","b"), d = c("a","a","b") ) test_df %>% group_split.(c, d) test_df %>% group_split.(c, d, .keep = FALSE) test_df %>% group_split.(c, d, .named = TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.