root.tree {phybase} | R Documentation |
Root a tree.
root.tree(nodematrix,outgroup)
nodematrix |
the tree node matrix |
outgroup |
the node used as outgroup |
The function returns a rooted tree.
Liang Liu lliu@oeb.harvard.edu
data(unrooted.tree) nodematrix<-read.tree.nodes(unrooted.tree[1])$nodes root.tree(nodematrix,23)