groups

0th

Percentile

Return grouping variables

group_vars() returns a character vector; groups() returns a list of symbols.

Usage
groups(x)

group_vars(x)

Arguments
x

A tbl()

Aliases
  • groups
  • group_vars
Examples
# NOT RUN {
df <- tibble(x = 1, y = 2) %>% group_by(x, y)
group_vars(df)
groups(df)
# }
Documentation reproduced from package dplyr, version 0.7.8, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.