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()

mtfairbanks/gdt documentation built on April 12, 2024, 6:51 p.m.