View source: R/DOC_QA_QC_funs.R
named_group_split | R 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.
named_group_split(.tbl, ...)
.tbl |
A data frame or tibble |
... |
Variables to group by. Use like any other tidyverse function. |
A named list, where the names come from the groups used to split the original data frame/tibble.
#mtcars %>% named_group_split(cyl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.