Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/clean_raw_data.R
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
.
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])
|
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) |
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
.
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).
Scott Large
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
1 2 3 4 | ## Not run:
clean_stock_trends(2016)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.