View source: R/adfg.calcTotalCatchZCs.R
adfg.calcTotalCatchZCs | R Documentation |
Function to calculate expanded annual total catch size compositions by crab fishery, area, year, sex and shell condition.
adfg.calcTotalCatchZCs(
tblTotAB,
tblTotZCsRaw,
cutpts = seq(from = 5, to = 185, by = 5),
truncate.low = TRUE,
truncate.high = FALSE
)
tblTotAB |
: dataframe with total catch abundance and biomass by fishery, area, year, sex, and shell condition |
tblTotZCsRaw |
: data.frame from call to function |
cutpts |
: cutpts for bins |
truncate.low |
: flag to exclude crab with sizes less than minimum cutpt (default=TRUE) |
truncate.high |
: flag to exclude crab with sizes greater than maximum cutpt (default=FALSE) |
Uses sqldf::sqldf()
and reshape2::dcast()
. tblTotZCsRaw should have columns
"fishery", "area", "year", "sex", "maturity", "shell condition", "size" and "count".
a dataframe with columns
fishery
area
sex
shell condition
year
size
abundance (in thousands of crab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.