View source: R/get_latest_metrics.r
get_latest_metrics | R Documentation |
Pulls the most recent data for set of metrics provided.
Often a benchmark or a Full update contains the longest time series of data
whereas partial updates only contain data since last benchmark.
Data is pulled from assessments defined as Operational. See stockAssessmentData
get_latest_metrics(itis = NULL, metrics = c("Catch", "Abundance"))
itis |
Numeric vector. Species ITIS code (Default = NULL, all species) |
metrics |
Character vector. The metrics for which data are required ("Catch","Abundance","Fmort","Recruitment"). Default = c("Catch","Abundance"). All selected metrics must be available for a successful data pull for each species. |
list of 2 data frames:
data |
Data frame consisting of time series values of the most recent Benchmark or Full update for the requested metrics. |
summary |
Summary of data returned in |
The document "Implementing a Next Generation Stock Assessment Enterprise" (NOAA, 2018) provides classification categories for assessments completed in FY2019 and later to offer a consistent language for the types of assessment analyses conducted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.