Validate Catch Data
validate_catch.Rd
This function validates the catch data by comparing it to calculated upper bounds.
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.