Aggregate Per-Species Yield Outputs Into Fleet-Level Totals
Source:R/aggregate_yields.R
aggregate_yields.RdSums catch, revenue, and profit across species from the outputs of
allocate_yields to produce a fleet-level "buffet" of spatial
yield metrics. Also computes per-unit-effort (PUE) counterparts.
This is the final step that builds the buffet consumed by
allocate_effort.
Arguments
- yields
Named list of per-species yield outputs (one element per species). Each element must be the output of
allocate_yieldsand contain patches x fleets matrices:r_p_fl,c_p_fl, andprof_p_fl. Names should match species names infauna.- e_p_fl
Numeric matrix of effort by patch (rows) and fleet (columns), with fleet names as column names. Used to compute per-unit-effort metrics.
- output_format
Character. Output format:
- groupers
Character vector. Grouping columns for tidy format (default:
c("fleet", "patch")). Ignored whenoutput_format = "matrix".
Value
A named list with six elements (summed across all species):
r_p_flRevenue by patch and fleet
c_p_flCatch by patch and fleet
prof_p_flProfit by patch and fleet
rpue_p_flRevenue per unit effort (
NAwhere effort = 0)cpue_p_flCatch per unit effort (
NAwhere effort = 0)ppue_p_flProfit per unit effort (
NAwhere effort = 0)
Details
Used in two contexts:
Inside
go_fish, to aggregate exploratory fishing results across species before returning the buffet.Inside the
simmarstep loop, afterallocate_yieldshas been called for each species.