ancandtime: Get ancestors and their divergence times

Description Usage Arguments Author(s) Examples

Description

This function returns the ancestors of a node and their divergence times.

Usage

1
ancandtime(inode, nodematrix, nspecies)

Arguments

inode

a node in the tree.

nodematrix

the tree matrix.

nspecies

number of species (taxa) in the tree.

Author(s)

Liang Liu

Examples

1
2
3
4
treestr<-"((((H:0.00402,C:0.00402):0.00304,G:0.00706):0.00929,O:0.01635):0.1,W:0.11635);"
nodematrix<-read.tree.nodes(treestr)$nodes
inode<-6
ancandtime(inode,nodematrix,nspecies=5)

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