Skip to contents

The number of major and sub groups (z and y categories) in a var_grp_df

Usage

var_subgroup_count(var_grp_df, .stratified = FALSE)

Arguments

var_grp_df

the var_grp dataframe

.stratified

if TRUE return the subgroup count stratified by major groups as a dataframe

Value

a count of groups and subgroups

Examples

tmp = iris %>% dplyr::group_by(Species) %>% var_group(. ~ Petal.Width + Sepal.Width)
tmp %>% var_subgroup_count()
#> [1] 124