mrca {ape} | R Documentation |
This function returns for each pair of tips (and nodes) its most recent common ancestor (MRCA).
mrca(phy, full = FALSE, as.numeric = FALSE)
phy |
an object of class "phylo" . |
full |
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. |
as.numeric |
a logical indicating whether to return the matrix of tip and node numbers as numeric. |
The diagonal is set to the number of the tips (and nodes if 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.
a matrix of mode character (by default) or numeric if as.numeric
= TRUE
.
Emmanuel Paradis paradis@isem.univ-montp2.fr