Calculate the mean weight of the community

Share:

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.

Arguments

object

An object of class MizerSim

min_w

minimum weight of species to be used in the calculation

max_w

maximum weight of species to be used in the calculation

min_l

minimum length of species to be used in the calculation

max_l

maximum length of species to be used in the calculation

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data(NS_species_params_gears)
data(inter)
params <- MizerParams(NS_species_params_gears, inter)
sim <- project(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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.