group_vars: Get the grouping variables

View source: R/group_by.R

group_varsR Documentation

Get the grouping variables

Description

Get the grouping variables

Usage

group_vars(x)

Arguments

x

A grouped tidytable

Examples

df <- data.table(
  a = 1:3,
  b = 4:6,
  c = c("a", "a", "b"),
  d = c("a", "a", "b")
)

df %>%
  group_by(c, d) %>%
  group_vars()

tidytable documentation built on Sept. 11, 2024, 8:05 p.m.