clean_stock_trends: Clean stock status trends

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/clean_raw_data.R

Description

clean_stock_trends returns list of 2: data frame of F and SSB relative to F<sub>MSY</sub> and MSY B<sub>trigger</sub> reference points for stocks of a fish category for an ecoregion and sag_complete_summary from clean_sag.

Usage

1
2
3
clean_stock_trends(active_year = 2016, grouping_var = c("EcoGuild",
  "EcoRegion", "FisheriesGuild")[1], plotting_var = c("StockCode",
  "FisheriesGuild")[1], metric = c("MSY", "MEAN")[1])

Arguments

active_year

numeric of the stock database version (year). e.g., 2016

grouping_var

character string of the desired grouping. Options include: EcoRegion, EcoGuild, or FisheriesGuild

plotting_var

character string of the variable to plot. Options include: StockCode or FisheriesGuild (mean)

metric

character string of the desired metric. Options include: MSY or MEAN (according to grouping_var)

Value

A list of 2: 1) data frame of F and SSB relative to F<sub>MSY</sub> and MSY B<sub>trigger</sub> reference points for stocks of a fish category for an ecoregion and 2) sag_complete_summary from clean_sag.

Note

Stocks are linked to ecoregions and fish categories via the ICES Stock database. Reference points are as published in ICES Stock Assessment Graphs database. In some cases, status relative to reference points may vary from published ICES advice when reported F or SSB are very close to reference points (e.g., F = 0.201 > F<sub>MSY</sub> = 0.20).

Author(s)

Scott Large

See Also

Used in stock_trends_fun for line plots of F and SSB relative to F<sub>MSY</sub> and MSY B<sub>trigger</sub> reference points for stocks of a fish category for an ecoregion. Input data: From clean_sag

Examples

1
2
3
4
## Not run: 
clean_stock_trends(2016)

## End(Not run)

ices-tools-prod/fisheryO documentation built on May 19, 2019, 8:22 a.m.