Description Usage Arguments Details Value
View source: R/rebinSizeFreqs.OldFormat.R
Function to re-bin and export size frequencies based on annual ADF&G 1-mm size bin counts as csv files.
1 2 |
tbl |
- dataframe derived from old-format ADF&G observed size frequencies csv file, or csv file itself |
cutpts |
- vector of cut points for binning |
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 |
csv.base |
- filename base for output csv files |
This function takes a dataframe derived from an old-format ADF&G observed size frequencies file, bins it, and converts it to wide- and long-format size frequency dataframes, as well as an associated table of sample sizes. In the old format, each file represents total numbers of at-sea observer-measured crabs for a single year, classified by shell condition categories 'newsoft', 'pliable', 'new', 'old' and 'very old' (each a column), as well as by 'sex' and 'size' (columns).
list with 3 elements * long - size frequencies in long format * wide - size frquencies in wide format * sample.size - associated sample sizes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.