Learn R Programming

ForestElementsR (version 2.0.1)

v_gri_core: Core Function For the GRI Tree Volume Calculation

Description

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

Usage

v_gri_core(species_id, dbh_cm, height_m, v_param)

Value

Tree wood volume (see v_gri)

Arguments

species_id

Vector of species ids (see v_gri), 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

Vector of breast height diameters (see v_gri)

height_m

Vector of tree heights (see v_gri)

v_param

An internally provided object with appropriate species (group) specific paramters

Details

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