make_all_clades: Create all (non-trivial) clades on 'n' taxa.

View source: R/matrix_building_functions.r

make_all_cladesR Documentation

Create all (non-trivial) clades on n taxa.

Description

Creates all clades on n taxa in the form of a vector of strings. Clades are of the form "{t1,t4}", "{t1,t2,t4}".

Usage

make_all_clades(n)

Arguments

n

number of taxa.

Details

Excludes 'trivial' clades such as "{t1}" or "{t1,t2,t3,t4,t5}" (for 5 taxa).

Value

a vector of strings containing all clades on n taxa.

Examples

make_all_clades(4)

maxbiostat/cladeCorrelation documentation built on July 28, 2023, 2:42 a.m.