Learn R Programming

ForestElementsR (version 2.0.1)

h_standard_bv_core: Core Function for calculating Individual Tree Heights with the Bavarian Standard Height Curve System

Description

See documentation of h_standard_bv for most information, this function is the workhorse behind, and should never be called directly by a user.

Usage

h_standard_bv_core(species_id, dbh_cm, age_yr, d_q_cm, h_q_m, params)

Value

A vector of the estimated heights

Arguments

species_id

Vector of species ids (see h_standard_bv), but for this core function to work, species_id must be provided as character. This will and should be not checked inside this function, because if used as intended, that has happened before calling it.

dbh_cm

Diameter at breast height vector (see documentation of h_standard_bv)

age_yr

Stand age vector (see documentation of h_standard_bv)

d_q_cm

Stand mean diameter vector (see documentation of h_standard_bv)

h_q_m

Stand mean height vector (see documentation of h_standard_bv)

params

A data frame that defines the function parameters corresponding to the species coding represented by species_id

Details

The function h_standard_bv is fully vectorized, inputs are recyled according to the tibble rules