initialN<- | R Documentation |
Values used as starting values for simulations with project()
.
initialN(params) <- value
initialN(object)
params |
A MizerParams object |
value |
A matrix with dimensions species x size holding the initial number densities for the fish spectra. |
object |
An object of class MizerParams or MizerSim |
A matrix with dimensions species x size holding the initial number densities for the fish spectra.
initialNResource()
, initialNOther()
# Doubling abundance of Cod in the initial state of the North Sea model
params <- NS_params
initialN(params)["Cod", ] <- 2 * initialN(params)["Cod", ]
# Calculating the corresponding initial biomass
biomass <- initialN(params)["Cod", ] * dw(NS_params) * w(NS_params)
# Of course this initial state will no longer be a steady state
params <- steady(params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.