noclock2clock: Convert a non-clocklike tree to a clocklike tree

Description Usage Arguments Value Author(s) References Examples

Description

This function converts a non-clocklike tree to a clocklike tree using an ad-hoc approach described in the paper Liu et al 2007.

Usage

1
noclock2clock(inode, treematrix, nspecies)

Arguments

inode

root of the tree

treematrix

tree node matrix

nspecies

the number of species in the tree

Value

The function returns the tree node matrix of the clocklike tree.

Author(s)

Liang Liu

References

~put references to the literature/web site here ~

Examples

1
2
3
4
treestr<-"(((H:1,C:3):2,G:6):2,O:10);"
name<-species.name(treestr)
treenode<-read.tree.nodes(treestr,name)$nodes
noclock2clock(7,treenode,4)

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