generate_parts: Generate all unique partitions* of size n

Description Usage Arguments Value

View source: R/partitions.R

Description

Generate all unique partitions* of size n

Usage

1
generate_parts(n, verbose = FALSE)

Arguments

n

number of people in cluster

verbose

if TRUE print the loop number

Value

a list of length n, where each list entry is named "gy" where y is the number of generations (between 1 and n). Each entry is a matrix with number of rows y where each column sums to n, each entry in the matrix is strictly positive.


skgallagher/TBornotTB documentation built on April 21, 2020, 1:19 p.m.