n_rep_ha | R Documentation |
The idea behind creating this function was to allow for using the very same evaluation algorithms for ha-based values for a broad range of different objects, e.g. stands/research plots, inventory plots, etc.
n_rep_ha(x)
x |
An object provided by ForestElementsR containing trees for which
a representation number per ha can be meaningfully given. Such an object
must contain a data frame called 'trees'. Typically, this is an
|
If the object x
contains information about its area, the
representation numbers for each tree will be calculated in the following way:
While n_rep_ha
will return a vector of equal numbers for
fe_stand
objects, this is less trivial for the class
fe_stand_spatial
. The latter might contain 'buffer zone trees'
beyond the actual stand outline. Such trees will obtain a zero representation
number in contrast to the trees inside the outline.
If x
does not contain sufficient information about its area, the
function will simply hand back the n_rep_ha
column of the
x$trees
data frame.
A vector of representation numbers corresponding to the order of the
trees data frame in x
.
# example for an fe_stand object
spruce_beech_1_fe_stand |> n_rep_ha()
# example for an fe_stand_spatial object
mm_forest_1_fe_stand_spatial |> n_rep_ha()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.