validate_catch_params: Validate surveys' catch parameters

View source: R/validation-functions.R

validate_catch_paramsR Documentation

Validate surveys' catch parameters

Description

This function takes a preprocessed landings' matrix and uses univariate techniques (see univOutl::LocScaleB) for the identification of outliers in the distribution of the number of individuals per catch and their size. The function returns a data frame with the survey id, the alert number and a nested column species_group containing validated catches parameters.

Usage

validate_catch_params(data = NULL, k_ind = NULL)

Arguments

data

A preprocessed data frame

k_ind

Extension of bounds for the number of individuals

Value

A data frame containing the validated catches parameters.

Examples

## Not run: 
pars <- read_config()
landings <- get_merged_landings(pars)
validate_catch_params(landings, k = 3)

## End(Not run)


WorldFishCenter/peskas.timor.data.pipeline documentation built on April 14, 2025, 1:47 p.m.