Get the regime of the branch leading to a node or a tip

PCMTreeGetRegimeForNode(tree, node)

Arguments

tree

a phylo object with an edge.regime member denoting regimes.

node

an integer denoting the node

Value

a character or an integer denoting the regime of the branch leading to the node, according to tree$edge.regime