split_groups: Split by group and name by group key

View source: R/grouping.R

split_groupsR Documentation

Split by group and name by group key

Description

This wrapper function performs a group split via group_split and renames the resulting list elements with the group keys.

Usage

split_groups(.df, ...)

Arguments

.df

A tibble.

...

Variables to group by.

Value

A list of tibbles split by group named by keys.

Examples

split_groups(
  datasets::iris,
  Species
)

albutz/tidyhelpr documentation built on May 9, 2022, 12:03 a.m.