Description Usage Arguments Value Examples
(SPFI) Sum CWT catch by fishery, stock, and age.
1 | calc_tsa.sum(x, newvar.name = "value.sum")
|
x |
A data frame. Typically the |
newvar.name |
A string of length one. This is the new name for the column of summed data. The default is "value.sum". It's recommended not to change the default unless using this function for purposes independent of the SPFI estimation. |
A data frame of the CWT catch sum grouped by fishery, stock, and age.
1 2 3 4 5 6 | ## Not run:
cwtcatch <- hrj.df[hrj.df$data.type=="NomCat" & hrj.df$fishery.index %in% fishery.subset & hrj.df$Stock.Number %in% stock.subset,]
if(region=="seak") cwtcatch <- adjustAlaska(x = cwtcatch, data.catch = data.catch)
r.tsa.sum <- calc_tsa.sum(x = cwtcatch, newvar.name = "r.tsa.sum")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.