group_vars {tidytable}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()

[Package tidytable version 0.11.1 Index]