run_discard: Run discaRd end to end

View source: R/run_discard.R

run_discardR Documentation

Run discaRd end to end

Description

Run discaRd end to end

Usage

run_discard(
  bdat,
  ddat_focal,
  c_o_tab = c_o_dat2,
  species_itis = "164712",
  stratvars = c("GEARTYPE", "meshgroup", "region", "halfofyear"),
  aidx = c(1, 2)
)

Arguments

bdat

table of observed trips that can include (and should include) multiple years

ddat_focal

table of observed trips for discard year

c_o_tab

matched table of observed and commerical trips

species_itis

species of interest using SPECIES_ITIS code

stratvars

stratification variables desired

aidx

subset of 'stratvars' for a simplified stratification.

year

year where discard is needed

Value

a list of: 1) Species, 2) discaRd results (summary table, CV, etc), 3)Complete table of commercial trips and discard amounts


noaa-garfo/discaRd documentation built on April 17, 2025, 10:32 p.m.