Preprocess Catch Data from Survey Forms
preprocess_catch.RdProcesses catch data from KoBoToolbox survey forms, handling different field structures that result from various survey form configurations. Automatically normalizes species field variations and processes length group data.
Value
A data frame with processed catch data including: submission_id, n_catch, count_method, catch_taxon, n_buckets, weight_bucket, individuals, length, catch_weight
Details
The function uses reshape_catch_data() internally which automatically handles:
Multiple species field formats (species_TL, species_RF, species_SH, etc.)
Regular length group data for fish under 100cm (e.g., 5_10, 10_15, etc.)
Separate length group structures for fish over 100cm
Length range conversion to midpoint values
Species code standardization (e.g., TUN→TUS, SKH→CVX)