Learn R Programming

poorman (version 0.2.0)

get_groups: Return grouping variables

Description

Return grouping variables

Usage

get_groups(x)

Arguments

x

A data.frame.

Value

A character vector of group names.

Examples

Run this code
# NOT RUN {
df <- mtcars %>% group_by(am, cyl)
get_groups(df)

# }

Run the code above in your browser using DataLab