groups: Return grouping variables

Description Usage Arguments See Also Examples

Description

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

Usage

1
2
3

Arguments

x

A tbl()

See Also

Other grouping functions: group_by_all, group_by, group_indices, group_rows, group_size

Examples

1
2
3
df <- tibble(x = 1, y = 2) %>% group_by(x, y)
group_vars(df)
groups(df)

olascodgreat/samife documentation built on May 13, 2019, 6:11 p.m.