Skip to contents

Helper function that will retrieve the starting state values that were used in an Rsim scenario

Usage

get.rsim.start_state(Rsim.scenario)

Arguments

Rsim.scenario

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

Value

Returns an `start_state` object.

See also

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)
params <- get.rsim.start_state(Rsim.scenario)
names(params) 
#> [1] "Biomass"    "N"          "Ftime"      "SpawnBio"   "StanzaPred"
#> [6] "EggsStanza" "NageS"      "WageS"      "QageS"