modifySpParams: Modify species/cohort parameters
Description
Routines to modify input species parameters or model input objects
Usage
modifySpParams(SpParams, customParams, subsetSpecies = TRUE)
modifyCohortParams(x, customParams)
Arguments
customParams
A data frame with new parameter values (see details).
subsetSpecies
A flag to indicate that the only species mentioned in customParams
should be returned.
Value
Function modifySpParams
returns a modified species parameter data frame. Function modifyCohortParams
returns a modified spwbInput
object.
Details
Data frame customParams
should have as many rows as species or cohorts and as many columns as parameters to modify. An additional column is needed to identify species/cohorts. In the case of modifySpParams
the column should be named 'SpIndex' (to match the corresponding column ofSpParamsMED
), while in modifyCohortParams
the column should be named 'Cohort' and will be matched with the cohort names given by spwbInput
or growthInput
.