Download, import, and tidy statistical tables from the RBA
read_rba( table_no = NULL, cur_hist = "current", series_id = NULL, path = tempdir() ) read_rba_seriesid(series_id, path = tempdir())
Character vector of table number(s),
Character; valid values are
Must be either a vector of either length 1 (eg. "
Optional, character. Specifying
Supply unique RBA time series identifier(s).
For example, "GCPIAG" is the identifier for the CPI, so
Directory in which to save downloaded RBA Excel file(s).
read_rba() downloads, imports and tidies data from statistical
tables published by the Reserve Bank of Australia. You can specify the
requested data using the
To find the
series_id that corresponds to the data you want,
use the functions
that some historical exchange rate tables do not have table numbers on
the RBA website; they have been assigned table numbers -
To see which tables cannot currently be read, run
read_rba_seriesid() is a wrapper around
A single tidy tibble containing the requested table(s)
## Not run: # Get a single table: read_rba(table_no = "a1.1") # Get multiple tables, combined in a tidy tibble: read_rba(table_no = c("a1.1", "g1")) # Get both the current and historical versions of a table read_rba(table_no = c("a1.1", "a1.1"), cur_hist = c("current", "historical")) # Get data based on the series ID: read_rba(series_id = "GCPIAG") # Or, equivalently, use: read_rba_seriesid("GCPIAG") # Get multiple series IDs: read_rba(series_id = c("GCPIAG", "GCPIAGSAQP")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.