Skip to contents

Generates all possible combinations of subgroup factors up to a specified maximum size.

Usage

get_combinations_info(L, maxk)

Arguments

L

Integer. Number of subgroup factors.

maxk

Integer. Maximum number of factors in a combination.

Value

List with max_count (total combinations) and indices_list (indices for each k).

Examples

# L=6 single-factor subgroups, combinations up to 2 factors
info <- get_combinations_info(L = 6, maxk = 2)
info$max_count   # total number of combinations
#> [1] 21
length(info$indices_list)
#> [1] 2