is.rootedtree {phybase} | R Documentation |
This function can test if the tree is rooted.
is.rootedtree(tree)
tree |
tree string or tree node matrix |
The function returns TRUE if the tree is a rooted tree. Otherwise, it returns FALSE.
Liang Liu lliu@oeb.harvard.edu
data(unrooted.tree) nodematrix<-read.tree.nodes(unrooted.tree[1])$nodes is.rootedtree(nodematrix) data(rooted.tree) is.rootedtree(rooted.tree[1])