coaltime: Coalescence time of two nodes

Description Usage Arguments Value Author(s) See Also Examples

Description

The function computes the coalescence time of two nodes.

Usage

1
coaltime(inode, jnode, nodematrix, nspecies)

Arguments

inode

the first node, it could be an internode.

jnode

the second node, it could be an internode.

nodematrix

the tree node matrix

nspecies

the number of species

Value

the function returns the coalescence time of inode and jnode.

Author(s)

Liang Liu

See Also

popsize

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);"
taxaname<-species.name(treestr)
nodematrix<-read.tree.nodes(treestr,name=taxaname)$nodes 
coaltime(1,2,nodematrix,5) #the coalescence time of taxa H (1) and C (2).

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