
Reshape catch details from wide to long format
reshape_catch_data_v1.RdTransforms catch data from a wide format (multiple columns per catch) to a long format (one row per catch per submission). This function is designed to work with KoBo survey data containing multiple catch details.
Value
A data frame in long format with the following columns:
- submission_id
Unique identifier for each submission
- n_catch
Catch number (1-based indexing)
- species
Marine species caught
- total_catch_weight
Weight of the catch (numeric)
- price_per_kg
Price per kilogram (numeric)
- total_value
Total value of the catch (numeric)