rba_search: Return list of data tables from RBA website

Description Usage Arguments Value Author(s) Examples

View source: R/rba-functions.R

Description

Function to return a list of all RBA data tables.

Usage

1
2
3
4
5
6
7
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

Author(s)

David Mitchell <david.pk.mitchell@gmail.com>

Examples

1
 rba_datasets <- rba_search(pattern = "Liabilities and Assets");

raustats documentation built on Jan. 11, 2020, 9:31 a.m.