phylobase (version 0.8.2)

isRooted: Methods to test, access (and modify) the root of a phylo4 object.

Description

Methods to test, access (and modify) the root of a phylo4 object.

Usage

isRooted(x)
"isRooted"(x)
rootNode(x)
"rootNode"(x)
rootNode(x) <- value
"rootNode"(x) <- value

Arguments

x
a phylo4 or phylo4d object.
value
a character string or a numeric giving the new root.

Value

isRooted
logical whether the tree is rooted
rootNode
the node corresponding to the root

Examples

Run this code
data(geospiza)
isRooted(geospiza)
rootNode(geospiza)

Run the code above in your browser using DataCamp Workspace