knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(ResNatSeed)
When the training database is the default one (i.e. based on vegetation surveys from the Piedmont Region - North-Western Italy), it is first necessary to provide the species list of a single seed mixture or donor grassland and their abundance. Species of the default training database are 258. The species names follow the Flora Alpina nomenclature [@aeschimann2004] and they are associated with the 'cep.names' code. This is an eight-letter abbreviation of species names according to the Cornell Ecology Programs (CEP). The seed mixture or donor grassland composition must follow the CEP name codes listed in data("cep.piem")
:
data("cep.piem") head(cep.piem)
The seed mixture or donor grassland composition must be a dataframe with 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.