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

isRootedR Documentation

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 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

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

Author(s)

Ben Bolker, Francois Michonneau

Examples

data(geospiza)
isRooted(geospiza)
rootNode(geospiza)

phylobase documentation built on May 29, 2024, 11:24 a.m.