Learn R Programming

medfate (version 0.8.2)

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

x

A model input object of class spwbInput.

SpParams

A species parameter data frame, typically SpParamsMED.

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.

See Also

spwbInput, SpParamsMED

Examples

Run this code
# NOT RUN {
## TO DO
# }

Run the code above in your browser using DataLab