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

...

Additional arguments that maybe used by methods.

Aliases
  • groups
  • ungroup
Examples
library(dplyr) grouped <- group_by(mtcars, cyl) groups(grouped) groups(ungroup(grouped))
Documentation reproduced from package dplyr, version 0.5.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.