Learn R Programming

FossilSim (version 2.4.1)

tree.max: Find the maximum age in a phylo object (root age or origin time)

Description

Function returns the the root age or the origin time (if root.edge = TRUE).

Usage

tree.max(tree, root.edge = TRUE)

Value

max age

Arguments

tree

Phylo object.

root.edge

If TRUE include the root edge (default = TRUE).

Examples

Run this code
t = ape::rtree(6)
tree.max(t, root.edge = FALSE)

Run the code above in your browser using DataLab