raustats (version 0.15.0)

rba_search: Return list of data tables from RBA website

Description

Function to return a list of all RBA data tables.

Usage

rba_search(
  pattern,
  fields = c("table_no", "table_name"),
  series_type = "statistical tables",
  ignore.case = TRUE,
  update_cache = FALSE
)

Arguments

pattern

Character string or regular expression to be matched

fields

Character vector of column names through which to search. By default, the function searches 'table_no' and 'table_name'.

series_type

Character vector specifying one or more one of 'statistical tables', 'historical data' or 'discontinued data'. By default, series_type = 'statistical tables'.

ignore.case

Case senstive pattern match or not.

update_cache

Logical expression, if FALSE (default), use the cached list of available RBA tables (rba_cachelist), if TRUE, update the list of available datasets.

Value

data frame in long format

Examples

Run this code
# NOT RUN {
 rba_datasets <- rba_search(pattern = "Liabilities and Assets");
# }

Run the code above in your browser using DataLab