rondeux_vc22_vtot: Calculate Total and Commercial Stem Volume (Rondeux, larch)
Description
Computes the total stem volume (rondeux_vtot) and the commercial
stem volume at 22 cm (rondeux_vc22) for larch trees according to
Rondeux equations, based on the circumference at 1.30 m (c130, in cm)
and the total height (htot, in meters).
A data frame identical to data, with two added columns:
rondeux_vtot: total stem volume (m3)
rondeux_vc22: commercial stem volume at 22 cm (m3)
Arguments
data
A data frame containing tree measurements. Must include:
species_code (uppercase character),
c130 (circumference at 1.30 m, in cm),
htot (total height, in m).
na_action
How to handle missing essential values (c130, htot).
"error" (default) stops if missing values are detected.
"omit" removes rows with missing essential fields.
output
Optional file path where the resulting data frame should be
exported as a CSV. If NULL (default), no file is written.
Export is handled by the utility function export_output() and
failures trigger warnings without interrupting execution.