rebinSizeFreqs.NewFormat: Re-bin and export size frequencies based on a csv file with...

Description Usage Arguments Details Value

View source: R/rebinSizeFreqs.NewFormat.R

Description

Function to re-bin and export size frequencies based on annual ADF&G 1-mm size bin counts as csv files.

Usage

1
2
3
4
rebinSizeFreqs.NewFormat(dfr = NULL, aggByRegion = TRUE, aggBySex = FALSE,
  aggByShellCondition = FALSE, cutpts = seq(from = 25, to = 185, by = 5),
  truncate.low = TRUE, truncate.high = FALSE, save = TRUE,
  out.dir = NULL, out.csv = NULL)

Arguments

dfr

- dataframe with raw size freq.s (or csv filename to read, or NULL for prompt)

aggByRegion

- flag (T/F) to aggregate size comps by region

aggBySex

- flag (T/F) to aggregate size comps by sex

aggByShellCondition

- flag (T/F) to aggregate size comps by shell condition

cutpts

- vector of cut points for re-binned size freq.s

truncate.low

- flag (T/F) to exclude sizes smaller than the 1st cutpoint

truncate.high

- flag (T/F) to exclude sizes larger than the last cutpoint

Details

Input dataframe/csv should have columns year,region,sex,shellcondition,size,frequency

Value

A dataframe containing the re-binned size frequencies.


wStockhausen/tcsamCrabFisheryData documentation built on July 18, 2021, 9:17 a.m.