Split dataframe into a list by grouping variable.
This function splits the dataframe into a list, with the length of the list equal to the factor levels of the grouping variable. Each element of the list will be a tibble.
grouped_list(data, grouping.var = NULL)
data |
A dataframe (or a tibble) from which variables specified are to be taken. Other data types (e.g., matrix,table, array, etc.) will not be accepted. |
grouping.var |
A single grouping variable (can be entered either as a
bare name |
ggstatsplot:::grouped_list(data = ggplot2::msleep, grouping.var = vore)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.