group_split_named: Splits data frame by groups into a named list

View source: R/group_split_named.R

group_split_namedR Documentation

Splits data frame by groups into a named list

Description

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

## Not run: 
mtcars %>% group_split_named(am)
mtcars %>% group_split_named(cyl, am)

## End(Not run)



pcctc/croquet documentation built on Aug. 10, 2024, 7:04 a.m.