Learn R Programming

phylobase (version 0.8.12)

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

Value

isRooted

logical whether the tree is rooted

rootNode

the node corresponding to the root

Arguments

x

a phylo4 or phylo4d object.

value

a character string or a numeric giving the new root.

Author

Ben Bolker, Francois Michonneau

Examples

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

Run the code above in your browser using DataLab