| matchNodes {phytools} | R Documentation |
This function returns a matrix in which the first column contains all the internal nodes for tr1 and the second column contains the matching nodes from tr2, inasmuch as they can be identified. For method="descendants", pairs of matching nodes are defined by sharing all descendant leaves in common. for method="distances", nodes are considered to matched if the share the same set of distances (or proportional distances, for optional argument corr=TRUE) to all tips.
matchNodes(tr1, tr2, method=c("descendants","distances"), ...)
tr1 |
first tree. |
tr2 |
second tree. |
method |
method to use to match nodes between trees. |
... |
optional arguments which may or may not be used depending on |
Primarily designed to be used internally by fastAnc.
A matrix in which the first column contains the nodes of tr1 with the second column containing matching nodes in tr2, with the criterion for matching defined by method.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.