Skip to contents

Creates a matrix of starting state variables used by Rsim, including initial biomass and numbers by group, as well as feeding time (Ftime). Default initial values: N = 0, Ftime = 1

Usage

rsim.state(params)

Arguments

params

Rsim parameter object generated by rsim.params.

Value

S3 object class Rsim.state, a list of 3 objects:

  • Biomass, numeric vector of initial biomass by biomass group

  • N, numeric vector of initial numbers by biomass group

  • Ftime, numeric vector of initial feeding time parameter by biomass group

Examples

# Read in Rpath parameter file and generate model object
Rpath <- rpath(AB.params)
# Create dynamic parameters from Rpath model
Rsim.params <- rsim.params(Rpath)
# Create state vectors with default values
Rsim.state <- rsim.state(Rsim.params)