[Experimental]

Calculates the yield of a species for a range of fishing mortalities for that species while the fishing mortalities for the other species are held fixed.

getYieldVsF(
  params,
  species,
  no_steps = 10,
  F_max = 3,
  F_range = seq(0, F_max, length.out = no_steps)
)

Arguments

params

An object of class MizerParams.

species

Name of the target species

no_steps

The number of steps to use. Only used if F_range is missing.

F_max

The maximum fishing mortality. Used only if F_range is missing.

F_range

A sequence of fishing mortalities at which to evaluate the yield. If missing, it is set to seq(from = 0, to = F_max, length.out = no_steps).

Value

A data frame with columns F and yield.

See also

plotYieldVsF

Examples

if (FALSE) { params <- newMultispeciesParams(NS_species_params_gears, inter) y <- getYieldVsF(params, "Cod", F_max = 1, no_steps = 5) }