GetAllPartitionCombinations: All Partition Combinations

Description Usage Arguments Value Author(s) Examples

View source: R/GetAllPartitionCombinations.R

Description

Given a set of partition sizes and labels produces all possible combinations.

Usage

1
GetAllPartitionCombinations(PartitionSizes, Labels)

Arguments

PartitionSizes

A numeric vector of partition sizes.

Labels

A character vector of labels.

Value

A matrix of all possible label combinations.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples

1
2
# Get information for trees with N tips:
GetAllPartitionCombinations(c(1,2,3), LETTERS[1:6])

graemetlloyd/hypRspace documentation built on Aug. 24, 2020, 11:41 a.m.