make_assumed_rate: Make an assumed rate

View source: R/make_assumed_rate.R

make_assumed_rateR Documentation

Make an assumed rate

Description

This function is meant to return fallback rates that are more general than a more specific stratification used in 'make_bdat_focal'. The discard rates are generated directly to be subsequently substituted where needed.

Usage

make_assumed_rate(
  bdat,
  species_itis = "164712",
  stratvars = c("GEARTYPE", "meshgroup")
)

Arguments

bdat

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

species_itis

species of interest using SPECIES_ITIS code

stratvars

Stratification variables. These must be columns available in 'bdat'. Not case sensitive. Thiws should be a subset of those used in 'make_bdat_focal'.

year

Year where discard estimate is needed

Value

a tibbleS with STRATA, KALL (Kept All), BYCATCH (discard of species), dk (discard rate)


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