Learn R Programming

mizer (version 2.2.0)

retune_erepro: Retune reproduction efficiency to maintain initial egg abundances

Description

Sets the reproductive efficiency for all species so that the rate of egg production exactly compensates for the loss from the first size class due to growth and mortality.

Usage

retune_erepro(params, species = species_params(params)$species)

Arguments

params

A '>MizerParams object

species

The species to be selected. Optional. By default all target species are selected. A vector of species names, or a numeric vector with the species indices, or a logical vector indicating for each species whether it is to be selected (TRUE) or not.

Value

A MizerParams object with updated values for the erepro column in the species_params data frame.

Details

Currently works only if the model uses either Beverton-Holt density dependent reproduction or density-independent reproduction.