View source: R/default_volume_function.R
default_volume_function | R Documentation |
Example function for estimating wood volume (in m3/ha) from a tree table or forest object.
default_volume_function(x, SpParams = NULL)
x |
A data frame with columns 'DBH', 'Height' and 'N' or a |
SpParams |
A data frame with species parameters (not used in the default function but will be called) |
Users should define their own functions taking into account that:
Input should be named 'x' and consist of a tree table with tree records as rows and columns 'DBH' (cm), 'Height' (cm), and 'N' (ind./ha).
Output should be a numeric vector of length equal to the number of tree records in 'x'
A function amenable for wood volume estimation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.