powered by
group_vars() returns a character vector; groups() returns a list of symbols.
group_vars()
groups()
groups(x)group_vars(x)
group_vars(x)
A tbl()
tbl()
# NOT RUN { df <- tibble(x = 1, y = 2) %>% group_by(x, y) group_vars(df) groups(df) # }
Run the code above in your browser using DataLab