ape (version 1.8-4)

mrca: Find Most Recent Common Ancestors Between Pairs

Description

This function returns for each pair of tips (and nodes) its most recent common ancestor (MRCA).

Usage

mrca(phy, full = FALSE, as.numeric = FALSE)

Arguments

Value

a matrix of mode character (by default) or numeric if as.numeric = TRUE.

Details

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.