Skip to contents

This function calculates the upper bounds for catch data based on gear type and fish category.

Usage

get_catch_bounds(data = NULL, k = NULL, total_catch = FALSE)

Arguments

data

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

k

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

total_catch

A logical value indicating whether to calculate bounds for total catch (TRUE) or individual catch (FALSE).

Value

A data frame with columns: gear, fish_category (if applicable), and upper.up (upper bound).