calc_ty.sum: (SPFI) Sum CWT catch by fishery, and year.

Description Usage Arguments Value Examples

Description

(SPFI) Sum CWT catch by fishery, and year.

Usage

1
calc_ty.sum(x, newvar.name = "value.sum")

Arguments

x

A data frame. Typically the cwtcatch object.

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.

Value

A data frame of the CWT catch sum by fishery, and year.

Examples

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.ty.sum <- calc_ty.sum(x = cwtcatch, newvar.name = "r.ty.sum")

## End(Not run)

MichaelFolkes/ctctools documentation built on May 7, 2019, 4:56 p.m.