R/check_latest_date.R
check_latest_date.Rd
This function returns the most recent observation date for a specified ABS time series catalogue number (as a whole), individual tables, or series IDs.
check_latest_date(cat_no = NULL, tables = "all", series_id = NULL)
ABS catalogue number, as a string, including the extension. For example, "6202.0".
numeric. Time series tables in cat_no`` to download and extract. Default is "all", which will read all time series in
cat_no. Specify
tablesto download and import specific tables(s) - eg.
tables = 1or
tables = c(1, 5)`.
(optional) character. Supply an ABS unique time series
identifier (such as "A2325807L") to get only that series.
This is an alternative to specifying cat_no
.
Date vector of length one. Date corresponds to the most recent observation date for any of the time series in the table(s) requested. observation date for any of the time series in the table(s) requested.
Where the individual time series in your request have multiple dates, only the most recent will be returned.
if (FALSE) { # \dontrun{
# Check a whole catalogue number; return the latest release date for any
# time series in the number
check_latest_date("6345.0")
# Return latest release date for a table within a catalogue number - note
# the function will return the release date
# of the most-recently-updated series within the tables
check_latest_date("6345.0", tables = 1)
# Or for multiple tables - note the function will return the release date
# of the most-recently-updated series within the tables
check_latest_date("6345.0", tables = c("1", "5a"))
# Or for an individual time series
check_latest_date(series_id = "A2713849C")
} # }