sppHarmonize | R Documentation |
Biomass_**
modulesThis function will attempt to harmonize many potential issues/conflicts that may arise under different combinations of supplied objects to the three arguments. See manual for details.
sppHarmonize(
sppEquiv,
sppNameVector,
sppEquivCol,
sppColorVect,
vegLeadingProportion = 0,
studyArea,
dPath = getOption("reproducible.destinationPath")
)
sppEquiv |
table with species name equivalencies between the kNN and final naming formats.
See |
sppNameVector |
A character vector of species to use. These species must all
be from one naming convention, i.e., from one column in the |
sppEquivCol |
A character string normally provided from the |
sppColorVect |
A named vector of colours to use for plotting.
The names must conform with species name convention used
(see sppEquivalencies_CA for possible naming
conventions) and should also contain a colour for 'Mixed',
when a mixed forest type is supported (see |
vegLeadingProportion |
Numeric between 0-1, determining the relative biomass threshold a species needs to pass to be considered "leading". |
studyArea |
A |
dPath |
Passed to |
Returns a named list with the same names as the arguments. These should
likely be assigned to the sim
object in the module following this function call.
## not run. usage example within module
# sppOuts <- sppHarmonize(sim$sppEquiv, sim$sppNameVector, P(sim)$sppEquivCol)
# sim$sppEquiv <- sppOuts$sppEquiv
# sim$sppNameVector <- sppOuts$sppNameVector
# P(sim)$sppEquivCol <- sppOuts$sppEquivCol
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.