Learn R Programming

TreeSearch (version 0.3.2)

Tree2Splits: Tree2Splits

Description

Converts a phylogenetic tree to an array of bipartition splits.

Usage

Tree2Splits(tr)

Tree2Bipartitions(tr)

Arguments

tr

A tree of class phylo, with tips bearing integer labels (i.e. tr$tip.label == 1:N).

Value

Returns a two-dimensional array. Columns correspond to unique bipartitions, named with the number of a node that denotes the partition. Rows correspond to tips 1:N.

Examples

Run this code
# NOT RUN {
Tree2Splits(ape::rtree(6, tip.label=1:6, br=NULL))

# }

Run the code above in your browser using DataLab