Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/clean_raw_data.R
stock_props
returns a list of the proportion of stocks
relative to reference points for fish categories in ecoregions.
1 2 3 | stock_props(active_year = active_year, ecoregion = ecoregion,
calculate_status = calculate_status, fisheries_guild = fisheries_guild,
return_clean_sag = FALSE)
|
active_year |
numeric of the stock database version (year). e.g., 2016 |
ecoregion |
vector of ecoregions to include |
calculate_status |
logical on whether to use raw SAG output to calculate stock status or to use the hard-coded values from stock summary table |
fisheries_guild |
vector of fisheries guilds to include |
return_clean_sag |
logical to return objects from clean_sag() |
returns a list with the data frame stock_props
of the proportion of stocks relative
to reference points for all ecoregions. When return_clean_sag = TRUE
, sag_complete_summary
and stock_list_frmt
are also returned from clean_sag
.
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.calculate_status = TRUE
calculates stock status
relative to published reference points. This will represent PA and SBL for ecoregions with proxy reference points. calculate_status = TRUE
takes the
raw icons from published advice. Note, before 2017 not all stocks status tables have been added to the SAG database and only few stocks had MSY proxy reference points.
Scott Large
Used in ices_stock_props
and ges_stock_props
to evaluate stocks relative
to ICES and GES reference points.
Input data: SAG summary table and reference points come from clean_sag
. frmt_summary_table
evaluates
status relative to reference points and formats the table for .html.
1 2 3 4 | ## Not run:
stock_props(2016)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.