akfin.calcUnscaledZCs: Calculate size compositions for Tanner crab bycatch in the...

akfin.calcUnscaledZCsR Documentation

Calculate size compositions for Tanner crab bycatch in the groundfish fisheries based on observed samples

Description

Function to calculate size compositions for Tanner crab bycatch in the groundfish fisheries based on observed samples.

Usage

akfin.calcUnscaledZCs(
  maxYear = 2019,
  fnHisZCs = NULL,
  fnNORPAC = NULL,
  id.facs = c("year", "gear", "area", "sex"),
  cutpts = seq(0, 185, 5),
  truncate.low = TRUE,
  truncate.high = FALSE
)

Arguments

maxYear
  • max fishery year to extract

fnHisZCs
  • file name for size composition estimates (numbers of crab) from "historical data" (pre-CAS)

fnNORPAC
  • file name for size data (numbers of crab) from a NORPAC length report file

id.facs
  • character vector of column names to use as factors in calculating size compositions

cutpts
  • cut points for size bins (default is 0-185 by 5)

truncate.low

-flag to truncate counts/abundance below the minimum size or include in first size bin (FALSE)

truncate.high
  • flag to truncate counts/abundance above the maximum size (TRUE) or include in final size bin (FALSE)

Details

Historical (foreign, joint venture) size composition data runs 1973-1990. NORPAC size composition data starts in 1986, but is typically not used until 1991.

Value

tibble with columns 'year','gear','area','sex','maturity','shell condition','size','N'


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