
Validate Total Catch Data
validate_total_catch.RdCompares the total catch (in total_catch_kg) to the upper bounds and flags
values that exceed the bound. Values exceeding bounds are set to NA in the total_catch_kg column.
Bounds are calculated based on landing site and gear type combinations.
Arguments
- data
A data frame containing columns:
submission_id,landing_site,gear,total_catch_kg.- k
A numeric value passed to
get_total_catch_boundsfor outlier detection.- flag_value
A numeric value to use as the flag for catches exceeding the upper bound. Default is 4.