Validate Blue Alliance (BA) Surveys Data
validate_ba_surveys.Rd
Validates Blue Alliance survey data by performing quality checks and calculating catch metrics. The function follows these main steps:
Loads and preprocesses survey data
Performs logical checks on key variables
Calculates catch and length bounds
Flags potential data quality issues
Saves and uploads validated data
Usage
validate_ba_surveys(log_threshold = logger::DEBUG)
Details
The validation includes:
Logical checks (non-negative catches, valid fisher counts, valid trip durations)
Statistical outlier detection for catch weights and lengths
Automated flagging system for quality control
Alert flag descriptions:
1: Total catch is negative
2: Number of fishers is 0 or negative
3: Trip duration is 0 or negative
4: Catch weight or length exceeds calculated bounds