find_possible_block_allocations: Internal function to generate possible subgroup combinations...

View source: R/permute_subgroups.R

find_possible_block_allocationsR Documentation

Internal function to generate possible subgroup combinations that add up to specific levels of an allocation variable

Description

Internal function to generate possible subgroup combinations that add up to specific levels of an allocation variable

Usage

find_possible_block_allocations(
  block_sizes,
  group_nums,
  fullTree = FALSE,
  maxCalls = 1e+06
)

Arguments

block_sizes

(Integer) vector of sizes of the various subgroups that can be combined to form groups

group_nums

Vector of sizes of the different groups to be formed

fullTree

Boolean: Enforce full search of the possibility tree, independent of the value of maxCalls

maxCalls

Maximum number of recursive calls in the search tree, to avoid long run times with very large trees

Value

List of possible allocations; Each allocation is an integer vector of allocation levels that are assigned in that order to the subgroups with sizes given by ⁠block sizes⁠


designit documentation built on May 29, 2024, 12:04 p.m.