Skip to contents

Get grouping variable names

Usage

# S3 method for class 'grouped_tidymatrix'
group_vars(x)

Arguments

x

A grouped_tidymatrix object

Value

A character vector of grouping variable names

Examples

library(dplyr, warn.conflicts = FALSE)
tm <- tidymatrix(big5_responses, big5_respondents, big5_items)

tm |>
  activate(rows) |>
  group_by(country, gender) |>
  group_vars()
#> [1] "country" "gender"