named_group_split: Named Group Split Function written by Romain Francois, here:...

View source: R/DOC_QA_QC_funs.R

named_group_splitR Documentation

Named Group Split Function written by Romain Francois, here: https://github.com/tidyverse/dplyr/issues/4223. Splits list into groups using group_split, but then names the list items according to a designation of your choice.

Description

Named Group Split Function written by Romain Francois, here: https://github.com/tidyverse/dplyr/issues/4223. Splits list into groups using group_split, but then names the list items according to a designation of your choice.

Usage

named_group_split(.tbl, ...)

Arguments

.tbl

A data frame or tibble

...

Variables to group by. Use like any other tidyverse function.

Value

A named list, where the names come from the groups used to split the original data frame/tibble.

Examples

#mtcars %>% named_group_split(cyl)

MFEh2o/MFEUtilities documentation built on May 6, 2023, 1:33 p.m.