q_nontarget: query non-target species catch estimate

View source: R/tables.R

q_nontargetR Documentation

query non-target species catch estimate

Description

non-target catch estimates by weight (or numbers)

Usage

q_nontarget(year, target, area, db, save = TRUE)

Arguments

year

assessment year

target

targeted species: 'p' = pollock-mid, 'b' = pollock-bottom, x' = rex, 'h' = shallow flats, 'k' = rockfish, 'w' = arrowtooth, 'c' = pcod, 'i' = halibut

area

fmp_area (GOA, BSAI) or fmp_subarea (BS, AI, WG, CG, WY, EY, SE) - also available (SEI, PWSI)

db

data server to connect to (akfin)

save

save the file in designated folder (default = T) or the global environment

Value

a csv of non-target species catch by trip target group, saved in the data/output folder

Examples

## Not run: 
akfin = afscdaya::connect()
q_nontarget(year=2022, target="k", area="goa", db=akfin, save=FALSE)
disconnect(akfin)

## End(Not run)


afsc-assessments/afscdata documentation built on Oct. 26, 2024, 2:03 p.m.