clean_sag: Clean SAG reference points and summary table

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

View source: R/clean_raw_data.R

Description

clean_sag returns a merged and tidied SAG reference points and summary table and a formatted (.html) stock list

Usage

1
clean_sag(active_year = 2016)

Arguments

active_year

numeric of the stock database version. e.g., 2016

Value

list of stock_list_frmt (data frame) and sag_complete_summary (tbl_df)

Note

Periodically, ICES adds or removes stocks from the advisory process. The function returns the SAG reference points and summary table for all published (in SAG) and active stocks for a given year.

Author(s)

Scott Large

See Also

Used in stock_trends_fun to make clickable information on dynamic 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. Also, used in frmt_summary_table.

Input data: stock_list_raw, sag_summary_raw,sag_refpts_raw, and sag_keys_raw.

Examples

1
head(clean_sag(active_year = 2016))

ices-tools-prod/fisheryO documentation built on Feb. 14, 2018, 1:21 p.m.