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

tree.noclock2clockR Documentation

Convert a non-clocklike tree to a clocklike tree

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

tree.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

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

lliu1871/phybase documentation built on April 21, 2024, 3:16 a.m.