validGearParams {mizer}R Documentation

Check validity of gear parameters and set defaults

Description

The function returns a valid gear parameter data frame that can be used by setFishing() or it gives an error message.

Usage

validGearParams(gear_params, species_params)

Arguments

gear_params

Gear parameter data frame

species_params

Species parameter data frame

Details

The gear_params data frame is allowed to have zero rows, but if it has rows, then the following requirements apply:

If gear_params is empty, then this function tries to find the necessary information in the species_params data frame. This restricts each species to be fished by only one gear. Defaults are used for information that can not be found in the species_params dataframe, as follows:

The row names of the returned data frame are of the form "species, gear".

When gear_params is NULL and there is no gear information in species_params, then a gear called knife_edge_gear is set up with a knife_edge selectivity for each species and a knive_edge_size equal to w_mat. Catchability is set to 0.3 for all species.

Value

A valid gear parameter data frame

See Also

gear_params()


[Package mizer version 2.5.1 Index]