View source: R/general_bioinfo.R
named_group_split | R Documentation |
Split grouped data with names. A wrapper around dplyr::group_by() ref: https://github.com/tidyverse/dplyr/issues/4223
named_group_split(.tbl, ..., keep_order = TRUE)
.tbl |
a data frame |
... |
arguments pass to dplyr::group_by() |
keep_order |
logical, default TRUE, whether to maintain original order of the groups. |
a named list
## Not run:
a <- tibble::tibble(x = 1:5, y = sample(letters[1:5]))
a %>% named_group_split(y)
a %>% named_group_split(y , keep_order = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.