groups: Get/set the grouping variables for tbl.

Description Usage Arguments Examples

View source: R/group-by.r

Description

These functions do not perform non-standard evaluation, and so are useful when programming against tbl objects. ungroup is a convenient inline way of removing existing grouping.

Usage

1
2
3

Arguments

x

data tbl

...

Additional arguments that maybe used by methods.

Examples

1
2
3
grouped <- group_by(mtcars, cyl)
groups(grouped)
groups(ungroup(grouped))

sctyner/dplyr050 documentation built on May 17, 2019, 2:22 p.m.