Skip to contents

Calculates the spawning stock biomass (SSB) for each species. For a MizerSim object this is returned for every saved time; for a MizerParams object it is calculated from the initial state. SSB is the total mass of all mature individuals.

Usage

getSSB(object)

Arguments

object

An object of class MizerParams or MizerSim.

Value

If called with a MizerParams object, a named vector with the SSB in grams for each species in the model. If called with a MizerSim object, a ArrayTimeBySpecies object (time x species) containing the SSB in grams at each time step for all species.

Examples

ssb <- getSSB(NS_sim)
ssb[c("1972", "2010"), c("Herring", "Cod")]
#> Spawning stock biomass (2 times x 2 species) [g] 
#>   Herring: min=4.43e+10 mean=1.09e+11 max=1.73e+11
#>   Cod: min=3.47e+11 mean=3.62e+11 max=3.76e+11