Skip to contents

Pivots matched trip catch records to a wide format with one row per trip and one column per species, ready for joining with effort data. The `country` column is carried through as an identifier.

Usage

build_catch_wide(matched)

Arguments

matched

A tibble as returned by [load_matched_trips()].

Value

A wide tibble with columns `pds_trip`, `country`, and one numeric column per species (catch in kg, zero-filled for missing combinations).