knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(ResNatSeed)
When the user uses default settings, the training database refers to the vegetation surveys from the Piedmont Region - North-Western Italy, which includes 248 plant species eligible to modeling. Such a list can be extracted through the command data("cep.piem")
. Species names follow the Flora Alpina nomenclature [@aeschimann2004] and they are associated with the 'cep.names' code, an eight-letter abbreviation of species names according to the Cornell Ecology Programs (CEP).
data("cep.piem") head(cep.piem)
From this list is possible to create the mixture or donor grassland composition database, which is characterized by two columns:
In this example, the donor grassland composition is characterized by five species:
Total abundances amount to 78%. The total abundance of the seed mixture or donor grassland composition should not necessarily amount 100%.
We can generate the dataframe of the donor grassland composition:
donor.composition<-data.frame( species=c("Bromere","Bracrupe","Festaggr","Knauarve","Silevulg"), abundance=c(25,18,22,8,5) ) donor.composition
It is now possible to use the RestInd
function to calculate the Suitability Index (SI) and Reliability Index (RI) by means of the donor grassland composition (dataframe 'donor.composition') and of the elevation, slope, and aspect of restoration site:
RestInd(trainingDB = NULL, composition=donor.composition, elevation=2300, slope=15, aspect=135 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.