Find Most Recent Common Ancestors Between Pairs
mrca returns for each pair of tips (and nodes) its most
recent common ancestor (MRCA).
getMRCA returns the MRCA of two or more tips.
mrca(phy, full = FALSE) getMRCA(phy, tip)
an object of class
a logical indicating whether to return the MRCAs among all tips and nodes (if
TRUE); the default is to return only the MRCAs among tips.
a vector of mode numeric or character specifying the tips; can also be node numbers.
mrca, the diagonal is set to the number of the tips (and
full = TRUE). If
full = FALSE, the colnames and
rownames are set with the tip labels of the tree; otherwise the
numbers are given as names.
tip is of length one or zero then
NULL is returned.
a matrix of mode numeric (
mrca) or a single numeric value