R/group-by.R
groups.grouped_tidymatrix.Rd
Get grouping variables
# S3 method for class 'grouped_tidymatrix' groups(x)
A grouped_tidymatrix object
A list of grouping variable names
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 #>