Learn R Programming

ForestElementsR (version 2.0.1)

d_age_gnfi3_core: Core Function for Estimate Stem Diameter Growth With the 3rd German National Forest Inventory Growth Model (2012)

Description

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

Usage

d_age_gnfi3_core(species_id, age_yr, dbh_cm_known, age_yr_known, params)

Value

A vector with estimates of the trees' expected dbh (see d_age_gnfi3)

Arguments

species_id

Vector of species ids (see d_age_gnfi3), 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. The codings must either follow the ger_nfi_2012 or the tum_wwk_short coding. In the former case, the parameter param_orig must be TRUE, in the latter, it must be FALSE.

age_yr

Single numeric value or vector of ages (in years) for which the diameter is to be calculated

dbh_cm_known

Vector of known dbh (cm) values at age age_yr_known

age_yr_known

Vector of ages (years) for which the dbh d_cm_known is known

params

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

Details

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