mrca: Find Most Recent Common Ancestors Between Pairs

Description Usage Arguments Details Value Author(s)

Description

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

Usage

1
mrca(phy, full = FALSE)

Arguments

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.

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.

Value

a matrix of mode numeric.

Author(s)

Emmanuel Paradis


gjuggler/ape documentation built on May 17, 2019, 6:03 a.m.