Preprocess Catch Data for Both Survey Versions
preprocess_catch.Rd
Processes catch data from WorldFish surveys, handling both version 1 and version 2 survey structures. Automatically detects survey version and applies appropriate species field normalization and length group processing.
Value
A data frame with processed catch data including: submission_id, n_catch, count_method, catch_taxon, n_buckets, weight_bucket, individuals, length
Details
The function uses reshape_catch_data_v2()
internally which automatically handles:
Version 1: Single species field, nested length groups
Version 2: Multiple species fields (species_TL, species_RF, etc.), separate length group structure for fish >100cm