mrca.nodes: Find the most recent common ancestor of multiple nodes

Description Usage Arguments Value Author(s) See Also Examples

Description

The function can find the most recent common ancestor of multiple nodes specified in nodevector

Usage

1
mrca.nodes(nodevector, nodematrix)

Arguments

nodevector

a set of nodes

nodematrix

the tree node matrix

Value

The function returns the node number of the most recent common ancestor of the nodes in nodevector.

Author(s)

Liang Liu lliu@uga.edu

See Also

mrca.2nodes, coaltime, popsize

Examples

1
2
3
treestr<-"((((H:0.00402,C:0.00402):0.00304,G:0.00707):0.00929,O:0.01635):0.1,W:0.12);"
nodematrix<-read.tree.nodes(treestr)$nodes
mrca.nodes(c(1,2,3),nodematrix)

bomeara/phybase documentation built on May 12, 2019, 11:35 p.m.