IV | R Documentation |
Calculates "importance values" from forest data
IV(object, group, years = NA, output = "dataframe", ...)
object |
Either an object of class |
group |
A required character string indicating which group of plants should be selected. Options are: "trees", "saplings", "seedlings", "shseedlings"(indicated shrub seedlings), or "herbs'. Currently not implemented for "vines" or "shrubs". |
years |
years Defaults to |
output |
Either "dataframe" or "list". Determines the output type When |
... |
Other arguments passed to |
This function is used to calculate forestry importance values in conjunction with calcIV
. One or more objects of class NPSForVeg
are used. The arguments to the function are passed on to SiteXSpec
and from there to getPlants
, so any argument which is accepted by either of these functions (eg. size.min
or crown
) is valid. getPlants
is used to acquire the relevant data.
SiteXSpec
is then used to create three site X species matrices - one which measures abundance per plot, one which is a measure of size per plot and one which is a presence/absence matrix. For trees, saplings and seedlings abundance is measured as the number of stems per plot, whereas for herb abundance is the number of quadrats a species is found in. Size is measured as basal area for trees and saplings, height for seedlings and percent cover for herbs.
Once the matrices are created they are passed to calcIV
which calculates the IV values.
A data.frame with the IV values for each species. Values are returned for the three separate components of IV (Density, Size and Distribution), as well as the Total. The values for each of the tree components will sum to one, so the the total will sum to three.
## Not run:
ncrn <- importNCRN("C:/Data/")
tree_iv <- IV(ncrn, group = 'trees', years = 2021:2024)
midn <- importMIDN("C:/Data/")
bowa_iv <- IV(midn[[2]], group = 'seedlings', years = 2021:2024)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.