group_vars.: Get the grouping variables

View source: R/group_by.R

group_vars.R 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 Oct. 5, 2023, 5:07 p.m.