Learn R Programming

ForestElementsR (version 2.0.1)

v_red_harvest_ubark_core: Core Function For the Volume Reduction With v_red_harvest_ubark

Description

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

Usage

v_red_harvest_ubark_core(species_id, v_orig_m3, params)

Value

A vector of wood volumes defined as harvested under bark (see v_red_harvest_ubark)

Arguments

species_id

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

v_orig_m3

Vector of wood volumes (m³) defined as standing over bark (see documentation of v_red_harvest_ubark.)

params

A data frame comprising species (group) wise reduction factors. The calling function has to take care that v_red_harvest_ubark_core is called with a params that fits to the coding used in species_id.

Details

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