Unique regimes on a tree in the order of occurrence from the root to the tips (preorder)

PCMTreeUniqueRegimes(tree, preorder = PCMTreePreorder(tree))

Arguments

tree

a phylo object with an additional member edge.regime which should be a character or an integer vector of length equal to the number of branches.

preorder

an integer vector of row-indices in tree$edge matrix as returned by PCMTreePreorder. This can be given for performance speed-up when several operations needing preorder are executed on the tree. Default : PCMTreePreorder(tree).

Value

a character or an integer vector depending on tree$edge.regime.