Regimes associated with branches in a tree
PCMTreeMatchRegimesWithModel(tree, model, preorder = PCMTreePreorder(tree))
tree | a phylo object |
---|---|
model | a PCM object |
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 : |
an integer vector with entries corresponding to the rows in tree$edge denoting the regime on each branch in the tree as an index in PCMRegimes(model).