group_split. | R Documentation |
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
group_split.(.tbl, ..., .keep = TRUE)
.tbl |
a tibble to split |
... |
the |
a list of the splitted tbl, with named elements
# nonames
isplit <- dplyr::group_split(iris, Species)
# names
nsplit <- group_split.(iris, Species)
gsplit <- iris |> group_by(Species) |> group_split.()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.