group_cols: Select Grouping Variables

Description Usage See Also Examples

View source: R/group_cols.R

Description

This selection helper matches grouping variables. It can be used within select() and relocate() selections.

Usage

1

See Also

groups() and group_vars() for retrieving the grouping variables outside selection contexts.

Examples

1
mtcars %>% group_by(am, cyl) %>% select(group_cols())

poorman documentation built on March 28, 2021, 5:05 p.m.