named_group_split: Named Group Split

Description Usage Arguments Value

View source: R/webFunctions.R

Description

This is a named version of dplyr::group_split, where the resulting list is named according to the variable it was split on. The function was written by Romain Francois, and I found it here: https://github.com/tidyverse/dplyr/issues/4223

Usage

1

Arguments

.tbl

A data frame.

...

Variables to group by

Value

A list, such that the names of the list are the group keys of the grouping variable(s).


kaijagahm/kgUtils documentation built on Feb. 17, 2021, 7:33 a.m.