ancandtime {phybase}R Documentation

Get ancestors and their divergence times

Description

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

Usage

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

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)

[Package phybase version 1.1 Index]