tree_height: Height of a tree.

View source: R/crown_age.R

tree_heightR Documentation

Height of a tree.

Description

In a reconstructed tree, obtaining the tree height is fairly straightforward, and the function beautier::get_crown_age does a great job at it. However, in a non-ultrametric tree, that function no longer works. Alternatively, taking the maximum value of adephylo::distRoot will also yield the tree height (including the root branch), but will typically perform many superfluous calculations and thus be slow.

Usage

tree_height(phy)

Arguments

phy

phylo object

Value

crown age


treestats documentation built on Sept. 14, 2024, 9:08 a.m.