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)

Arguments

cat_no

ABS catalogue number, as a string, including the extension. For example, "6202.0".

tables

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 = 1ortables = c(1, 5)`.

series_id

(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.

Value

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.

Details

Where the individual time series in your request have multiple dates, only the most recent will be returned.

Examples

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")
} # }