getBiomass: Calculate the total biomass of each species within a size...

getBiomassR Documentation

Calculate the total biomass of each species within a size range at each time step.

Description

Calculates the total biomass through time of the species in the therMizerSim class within user defined size limits. The default option is to use the whole size range. You can specify minimum and maximum weight or length range for the species. Lengths take precedence over weights (i.e. if both min_l and min_w are supplied, only min_l will be used).

Calculate the total biomass of each species from a therMizerSim object

Usage

getBiomass(object, ...)

## S4 method for signature 'therMizerSim'
getBiomass(object, ...)

Arguments

object

An object of class therMizerSim.

...

Other arguments to select the size range of the species to be used in the calculation (min_w, max_w, min_l, max_l).

Value

An array containing the biomass (time x species)

Examples

## Not run: 
data(NS_species_params_gears)
data(inter)
params <- therMizerParams(NS_species_params_gears, inter)
# With constant fishing effort for all gears for 20 time steps
sim <- project_therMizer(params, t_max = 20, effort = 0.5)
getBiomass(sim)
getBiomass(sim, min_w = 10, max_w = 1000)

## End(Not run)

pwoodworth-jefcoats/Size-Based-Modeling documentation built on Sept. 15, 2023, 8:13 a.m.