rootoftree {phybase}R Documentation

Root of a tree

Description

This function can be used to find the root of a tree.

Usage

rootoftree(nodematrix)

Arguments

nodematrix the tree node matrix

Value

The function returns the root of the tree.

Author(s)

Liang Liu lliu@oeb.harvard.edu

See Also

rootoftree, root.tree

Examples

treestr<-"((((H:0.00402,C:0.00402):0.00304,G:0.00707):0.00929,O:0.01635):0.1,W:0.12);"
nodematrix<-read.tree.nodes(treestr)$nodes
spname<-read.tree.nodes(treestr)$names
rootoftree(nodematrix)

[Package phybase version 1.1 Index]