clean_catch: clean up catch data

View source: R/clean_catch.R

clean_catchR Documentation

clean up catch data

Description

clean up catch data

Usage

clean_catch(
  year,
  species,
  fishery = "fsh",
  TAC = c(3333, 2222, 1111),
  discard = NULL,
  gear = NULL,
  fixed_catch = NULL,
  save = TRUE
)

Arguments

year

year of assessment

species

species of interest e.g., "SABL", "DUSK"

fishery

identify the fishery default is "fsh"

TAC

last three TAC in form: c(year-3, year-2, year-1)

discard

if summarizing catch by discard/retained is desired change to TRUE

gear

if summarizing catch by gear type is desired change to TRUE

fixed_catch

if early catch is frozen place the file in user_input folder (format: Year, Catch)

save

Examples

## Not run: 
clean_catch(year, TAC = c(2874, 2756, 3100))

## End(Not run)


BenWilliams-NOAA/groundfishr documentation built on May 11, 2022, 7:41 p.m.