Skip to contents

Get grouping variables

Usage

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

Arguments

x

A grouped_tidymatrix object

Value

A list 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) |>
  groups()
#> [[1]]
#> country
#> 
#> [[2]]
#> gender
#>