Learn R Programming

ForestElementsR (version 2.0.1)

crown_diameter_silva_core: Core function for the silva tree crown diameter calculation

Description

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

Usage

crown_diameter_silva_core(species_id, dbh_cm, height_m)

Value

Tree crown diameter (see crown_diameter_silva)

Arguments

species_id

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

height_m

Vector of tree heights (see crown_diameter_silva)

Details

The function crown_diameter_silva is fully vectorized, inputs are recycled according to the tibble rules