Named Split data frame by group

named_group_split(.tbl, ..., arrange = NULL)

Arguments

.tbl

A tbl

...

Grouping specification, forwarded to dplyr::group_by()

arrange

A character. If NULL, the default, this will sort the list alphabetically. Use asc or descif sorting the list by count is needed.

Value

returns a named list of tibbles. Each tibble contains the rows of .tbl for the associated group and all the columns, including the grouping variables.

References

https://github.com/tidyverse/dplyr/issues/4223