group_vars()
returns a character vector; groups()
returns a list of
symbols.
groups(x) group_vars(x)
x | A |
---|
group_cols()
for matching grouping variables in
selection contexts.
Other grouping functions: group_by_all
,
group_by
, group_indices
,
group_keys
, group_map
,
group_nest
, group_rows
,
group_size
, group_trim
#> [1] "x" "y"groups(df)#> [[1]] #> x #> #> [[2]] #> y #>