group_split.: Split a grouped tbl, but return a named list.

View source: R/dplyr-facile.R

group_split.R Documentation

Split a grouped tbl, but return a named list.

Description

dplyr::group_split() splits a grouped tbl, but the splits are unnamed. This spanks the names on there. https://github.com/tidyverse/dplyr/issues/4223#issuecomment-469269857

Usage

group_split.(.tbl, ..., .keep = TRUE)

Arguments

.tbl

a tibble to split

...

the ... in dplyr::group_by()

Value

a list of the splitted tbl, with named elements

Examples

# nonames
isplit <- dplyr::group_split(iris, Species)
# names
nsplit <- group_split.(iris, Species)
gsplit <- iris |> group_by(Species) |> group_split.()

facilebio/FacileData documentation built on March 29, 2025, 4:30 p.m.