phylobase (version 0.8.4)

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)

# S4 method for phylo4 isRooted(x)

rootNode(x)

# S4 method for phylo4 rootNode(x)

rootNode(x) <- value

# S4 method for phylo4 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
# NOT RUN {
data(geospiza)
isRooted(geospiza)
rootNode(geospiza)
# }

Run the code above in your browser using DataCamp Workspace