get_combinations_info: Get all combinations of subgroup factors up to maxk

View source: R/subgroup_search.R

get_combinations_infoR Documentation

Get all combinations of subgroup factors up to maxk

Description

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
length(info$indices_list)

forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.