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

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
isRooted(x)

## S4 method for signature 'phylo4'
isRooted(x)

rootNode(x)

## S4 method for signature 'phylo4'
rootNode(x)

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

1
2
3

Example output

[1] TRUE
N15 
 15 

phylobase documentation built on May 2, 2019, 6:49 p.m.