Learn R Programming

ForestElementsR (version 2.0.1)

h_standard_gnfi3_core: Core Function for the Estimation of Tree Heights Using the Standard Height Curve System of the 3rd German National Forest Inventory

Description

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

Usage

h_standard_gnfi3_core(species_id, dbh_cm, d_q_cm, h_q_m, params)

Value

A vector with estimates of the trees' heights (m) (see h_standard_gnfi3)

Arguments

species_id

Vector of species ids (see h_standard_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, the tum_wwk_short, or the bavrn_state_short coding.

dbh_cm

Vector of breast height diameters (see h_standard_gnfi3)

d_q_cm

The species quadratic mean diameter (cm) in the stand of interest. (see h_standard_gnfi3)

h_q_m

The species mean height (m), corresponding to the quadratic mean diameter in the stand of interest. (see h_standard_gnfi3)

params

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

Details

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