akfin.calcBycatchABs: Calculate estimated total bycatch abundance and biomass of...

View source: R/akfin.CalcFunctions.R

akfin.calcBycatchABsR Documentation

Calculate estimated total bycatch abundance and biomass of Tanner crab in groundfish fisheries

Description

Function to calculate estimated total catch abundance by expanding observed abundance.

Usage

akfin.calcBycatchABs(
  maxYear = 2019,
  fnHIS = "GroundfishFisheries.HistoricalBycatchBiomass.TannerCrab.csv",
  fnCAS = "FromAKFIN.TannerCrab.BycatchEstimates.CAS.csv",
  fnCIA = "FromAKFIN.TannerCrab.BycatchEstimates.CIA.csv",
  verbosity = 0
)

Arguments

maxYear
  • max fishery year to extract

fnHIS
  • filename for bycatch estimates from "historical data" (pre-CAS)

fnCAS
  • filename for bycatch estimates from Catch Accounting System

fnCIA
  • filename for bycatch estimates from Catch-In_Areas database

verbosity
  • integer flag for diagnostic printout (0,1,2)

Details

Uses sqldf::sqldf. Units for 'weight' are kg, for 'abundance' are thousands, and for 'biomass' are t. Historical (foreign, joint veture) data runs 1973-1990. CAS data is used for 1991-2008. CIA data is used for 2009+.

Value

tibble with columns

  • fishery

  • area

  • year

  • expFactor - expansion factor

  • sex - "male", "female", "undetermined", "hermaphrodite", or NA

  • variable - "count", "weight", "abundance", or "biomass"

  • value - value of associated variable

  • type - "observed" or "expanded"

  • units - "ones", "thousands", "kg" or "t"


wStockhausen/tcsamFisheryDataAKFIN documentation built on Aug. 30, 2023, 12:08 p.m.