getMeanWeight: Calculate the mean weight of the community

getMeanWeightR Documentation

Calculate the mean weight of the community

Description

Calculates the mean weight of the community through time. This is simply the total biomass of the community divided by the abundance in numbers. 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). You can also specify the species to be used in the calculation.

Calculate the mean weight of the community from a therMizerSim object.

Usage

getMeanWeight(object, ...)

## S4 method for signature 'therMizerSim'
getMeanWeight(object,
  species = 1:nrow(object@params@species_params), ...)

Arguments

object

An object of class therMizerSim

...

Other arguments for the getN and getBiomass methods suchs as min_w, max_w min_l and max_l.

species

numeric or character vector of species to include in the calculation

Value

A vector containing the mean weight of the community through time

Examples

## Not run: 
data(NS_species_params_gears)
data(inter)
params <- therMizerParams(NS_species_params_gears, inter)
sim <- project_therMizer(params, effort=1, t_max=10)
getMeanWeight(sim)
getMeanWeight(sim, species=c("Herring","Sprat","N.pout"))
getMeanWeight(sim, min_w = 10, max_w = 5000)

## End(Not run)

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