Extract AEQ mortality from Chinook FRAM database

aeq_mort(db, runs = NULL, stocks = NULL, drop_t1 = T, sum_ages = F)

Arguments

db

string, file path to database

runs

numeric, RunID(s) as ID or ID:ID

stocks

numeric, StockID(s) as ID or ID:ID

drop_t1

logical, should timestep 1 be excluded?

sum_ages

logical, should ages 2:5 be summed? (per run-s-f-t)

Value

a tibble of AEQ'd mortality, possibly aggregated over ages to the per run-stock-fishery-timestep total

Examples

if (FALSE) {

#showing M&UM for a given stock across runs
#with ages 2:5 summed for timesteps 2:4
aeq_mort("path/to/Chinook_FRAM_Database.mdb",
 runs = 1:4, stocks = 31:32, drop_t1 = T, sum_ages = T)

}