Skip to contents

Behaves similarly to dplyr::group_split(), with the addition of named list elements. Borrowed from Romain Francois in this dplyr issue: https://github.com/tidyverse/dplyr/issues/4223

Usage

group_split_named(.tbl, ...)

Arguments

.tbl

a data frame

...

Grouping specification, forwarded to group_by()

Value

a named list

Examples

if (FALSE) {
mtcars %>% group_split_named(am)
mtcars %>% group_split_named(cyl, am)
}