powered by
Methods to test, access (and modify) the root of a phylo4 object.
isRooted(x)# S4 method for phylo4 isRooted(x)rootNode(x)# S4 method for phylo4 rootNode(x)rootNode(x) <- value# S4 method for phylo4 rootNode(x) <- value
# S4 method for phylo4 isRooted(x)
rootNode(x)
# S4 method for phylo4 rootNode(x)
rootNode(x) <- value
# S4 method for phylo4 rootNode(x) <- value
logical whether the tree is rooted
the node corresponding to the root
a phylo4 or phylo4d object.
phylo4
phylo4d
a character string or a numeric giving the new root.
Ben Bolker, Francois Michonneau
data(geospiza) isRooted(geospiza) rootNode(geospiza)
Run the code above in your browser using DataLab