isRooted {phylobase} | R Documentation |
Methods to test, access (and modify) the root of a phylo4 object.
isRooted(x)
## S4 method for signature 'phylo4'
isRooted(x)
rootNode(x)
## S4 method for signature 'phylo4'
rootNode(x)
rootNode(x) <- value
## S4 replacement method for signature 'phylo4'
rootNode(x) <- value
x |
a |
value |
a character string or a numeric giving the new root. |
logical whether the tree is rooted
the node corresponding to the root
Ben Bolker, Francois Michonneau
data(geospiza)
isRooted(geospiza)
rootNode(geospiza)