getmrca: Find most recent common ancestors

Description Usage Arguments Details Value Author(s) See Also

View source: R/getmrca.R

Description

Calculates the most recent common ancestor for each pair of tips. Used internally by getEventData.

Usage

1
getmrca(phy, t1, t2)

Arguments

phy

An object of class phylo.

t1

A vector of mode integer or character corresponding to tips in phy.

t2

A vector of mode integer or character corresponding to tips in phy.

Details

Finds the most recent common ancestor for each pair of tips where pairs are defined as (t1[1], t2[1]), (t1[2], t2[2]), ... , (t1[i], t2[i]), ... ,(t1[n], t2[n]).

Value

A vector of node numbers of the common ancestor for each pair of tips.

Author(s)

Mike Grundler

See Also

subtreeBAMM


BAMMtools documentation built on May 29, 2017, 5:47 p.m.

Search within the BAMMtools package
Search all R packages, documentation and source code