
Calculate tree height from DBH using allometric equations
Source:R/allometric_equations.R
calc_height.RdCalculates tree height using asymptotic exponential growth curves: height (m) = 1.3 + a * (1 - exp(-b * DBH))
Usage
calc_height(dbh, species, allometric_params = get_default_allometric_params())Examples
# Single tree
calc_height(20, "PIED")
#> [1] 8.421164
# Multiple trees with different species
calc_height(c(10, 20, 30), c("PIED", "JUSO", "JUMO"))
#> [1] 5.648462 7.621206 11.083281
# Ponderosa pine
params <- get_ponderosa_allometric_params()
calc_height(40, "PIPO", params)
#> [1] 23.42422