sum_fleets_catches: Sum fleets catches

View source: R/sum_fleets_catches.R

sum_fleets_catchesR Documentation

Sum fleets catches

Description

sum_fleets_catches is a helper function to apply sum_fleet_catches to all fleets, returning a single list of matrices with the catches of each population across all fleets and vessels.

Usage

sum_fleets_catches(
  FUN = sum_fleet_catches,
  fleets_log = NULL,
  sim_init = sim,
  ...
)

Arguments

FUN

is the function, i.e. sum_fleet_catches

fleets_log

is the log of all the catches for all fleets, coming from application of go_fish_fleet to all fleets

n_spp

is the number of populations in the simulation (NOTE: can remove this and take from the overall sim settings)

Value

is a list of matrices (one for each population) with all fleets catches of each population. This is then used as an input to the baranov calcs

Examples

spp_catches <- sum_fleets_catches(FUN = sum_fleet_catches,
fleets_log = applied_to_fleets, n_spp = 2)

pdolder/MixFishSim documentation built on Oct. 17, 2023, 4:25 p.m.