Get the MRCA (or height above the root of the MRCA) of a pair of tip taxa
This function returns the most recent common ancestor (node number) for a pair of taxa; or, in the case of fastHeight
, the height above the root of the MRCA of a pair of taxa; or, in the case of fastDist
, the patristic distance between a pair of taxa.
fastMRCA(tree, sp1, sp2) fastHeight(tree, sp1, sp2) fastDist(tree, sp1, sp2)
tree |
an object of class |
sp1 |
species one name. |
sp2 |
species two name. |
The node number of the MRCA, the height above the root (for fastHeight
), or the patristic distance between two taxa (for fastDist
).
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.
tree<-pbtree(n=2000) anc<-fastMRCA(tree,"t1","t15")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.