Skip to contents

This function validates the catch data by comparing it to calculated upper bounds.

Usage

validate_catch(data = NULL, k = NULL, total_catch = FALSE, flag_value = 4)

Arguments

data

A data frame containing catch data with columns: catch_id, gear, fish_category (or total_catch_kg), and catch_kg (or total_catch_kg).

k

A numeric value used in the get_catch_bounds function for outlier detection.

total_catch

A logical value indicating whether to validate total catch (TRUE) or individual catch (FALSE).

flag_value

A numeric value to use as the flag for catches exceeding the upper bound. Default is 4.

Value

A data frame with columns: catch_id, catch_kg (or total_catch_kg), and alert_catch.