
Validate Catch per Fisher
validate_fishers_catch.Rd
This function validates the relationship between total catch and number of fishers. It flags cases where a single fisher reports a catch exceeding the specified maximum. When flagged, the total catch value is set to NA.
Arguments
- data
A data frame containing the columns:
submission_id: Unique identifier for the submission
no_of_fishers: Number of fishers
total_catch_kg: Total catch in kilograms
- max_kg
Numeric value specifying the maximum catch (in kg) allowed for a single fisher
- flag_value
A numeric value to use as the flag for catches exceeding the maximum per fisher