Learn R Programming

mizer (version 3.4.0)

install_tmp_gear: Add a gear that exerts the fishing mortality being scanned

Description

Copies the selectivity of the first gear catching the species onto a new gear called gear_name with catchability 1, so that the effort of that gear is the fishing mortality it exerts, and switches off the catchability of the gears it replaces. The fishing on every other species is untouched. The effort of the new gear is left at whatever gear_params<-() gives it; the caller sets it to the value being scanned.

Usage

install_tmp_gear(params, species, gear = NULL, gear_name)

Value

The MizerParams object with the extra gear.

Arguments

params

A MizerParams object.

species

The target species.

gear

The gear whose mortality is replaced, or NULL for all of the gears catching the species.

gear_name

The name to give the new gear.