akfin.ScaleZCs: Calculate estimated total bycatch abundance-scaled size comps...

akfin.ScaleZCsR Documentation

Calculate estimated total bycatch abundance-scaled size comps of Tanner crab in groundfish fisheries

Description

Function to calculate estimated total bycatch abundance-scaled size comps of Tanner crab in groundfish fisheries.

Usage

akfin.ScaleZCs(
  dfrABs.YGAT,
  dfrZCs.onYGAXZ,
  cutpts = seq(25, 185, 5),
  truncate.low = TRUE,
  truncate.high = FALSE
)

Arguments

dfrABs.YGAT
  • dataframe with total abundance by YGAT

dfrZCs.onYGAXZ
  • dataframe with "raw" number size compositions by YGAX

cutpts
  • cutpts for scale size compositions (default is 25->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

Estimated total annual bycatch abundance from the CAS and CIA databases (as a tibble from akfin.calcBycatchABs) is used to scale unscaled size compositions (a tibble from akfin.calcUnscaledZCs) for years in which such exists. For years in which total bycatch abundance is not available, the size compositions are not scaled.

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.