Skip to contents

Modifies the various parameters of the rsim.scenario() object. Parameters that can be adjusted using this function are: B_BaseRef, MzeroMort,UnassimRespFrac, ActiveRespFrac, FtimeAdj, FtimeQBOpt, PBopt, NoIntegrate,HandleSelf, ScrambleSelf, QQ, DD, VV, HandleSwitch, PredPredWeight, PreyPreyWeight

Usage

adjust.scenario(Rsim.scenario, parameter, group, groupto = NA, value)

Arguments

Rsim.scenario

Scenario object that contains all of the rsim rates and forcing functions generated by rsim.scenario().

parameter

Parameters to be modified (Choose from: B_BaseRef, MzeroMort, UnassimRespFrac, ActiveRespFrac, FtimeAdj, FtimeQBOpt, PBopt, NoIntegrate, HandleSelf, ScrambleSelf, QQ, DD, VV, HandleSwitch, PredPredWeight, PreyPreyWeight)

group

The model group that the parameter change will affect. Note that a value of 'all' will affect all groups associated with the `groupto` variable. Valid values are found in the `Group` field of the object created from running rpath()

groupto

The corresponding group who's parameter is affecting the group variable. Required for parameters QQ, DD, VV, HandleSwitch,PredPredWeight, PreyPreyWeight

value

New value for the parameter.

Value

Returns an rsim.scenario() object with the new parameter.

See also

Other Adjust functions: adjust.fishing(), adjust.forcing(), set.rsim.scene()

Examples

# Read in Rpath parameter file and generate balanced model
Rpath <- rpath(AB.params)
# Create a 50 yr Rsim scenario
Rsim.scenario <- rsim.scenario(Rpath, AB.params, years = 1:50)
# Adjust the PBopt parameter for cod. Set to value = 2
Rsim.scenario.adjusted <- adjust.scenario(Rsim.scenario, parameter="PBopt",group = "cod", groupto = "all", value = 2)