Calculates the spawning stock biomass (SSB) through time of the species in the MizerSim class. SSB is calculated as the total mass of all mature individuals.

getSSB(sim)

Arguments

sim

An object of class MizerSim.

Value

An array (time x species) containing the SSB in grams.

See also

Other summary functions: getBiomass(), getDiet(), getGrowthCurves(), getN(), getYieldGear(), getYield()

Examples

ssb <- getSSB(NS_sim)
ssb[c("1972", "2010"), c("Herring", "Cod")]
#>       sp
#> time        Herring          Cod
#>   1972  44290356621 375924484131
#>   2010 172765918920 347442607081