groups

0th

Percentile

Get/set the grouping variables for tbl.

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
groups(x)

ungroup(x)

Arguments
x
data tbl
Aliases
  • groups
  • ungroup
Examples
grouped <- group_by(mtcars, cyl)
groups(grouped)
groups(ungroup(grouped))
Documentation reproduced from package dplyr, version 0.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.