
Pulls the most recent data for any combination of Abundance, Catch, Recruitment, Mort
Source:R/get_latest_metrics.r
get_latest_metrics.RdPulls 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
Usage
get_latest_metrics(itis = NULL, metrics = c("Catch", "Abundance"))Value
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
data. StockName, CommonName, StockArea, ITIS, Metric in addition to the AssessmentYear the data came from, the FirstYear and LastYear of the data and the number of years (numYear) of data retrieved