abs_cat_stats: Get ABS catalogue series data

Description Usage Arguments Value Author(s) Examples

View source: R/abs-cat-functions.R

Description

This function downloads ABS catalogue series statistics, by ABS catalogue number.

Usage

1
2
3
4
5
6
7
abs_cat_stats(
  cat_no,
  tables = "All",
  releases = "Latest",
  types = "tss",
  na.rm = TRUE
)

Arguments

cat_no

Character vector specifying one or more ABS collections or catalogue numbers to download.

tables

A character vector of regular expressions denoting tables to download. The default ('All') downloads all time series spreadsheet tables for each specified catalogue. Use a list to specify different table sets for each specified ABS catalogue number.

releases

Date or character string object specifying the month and year denoting which release to download. Default is "Latest", which downloads the latest available data. See examples for further details.

types

One of either 'tss' – ABS time series spreadsheet (the default) or 'css' – ABS data cube (cross-section spreadsheet).

na.rm

logical (default: TRUE) - remove observations containing missing values.

Value

data frame in long format

Author(s)

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

Examples

1
2
3
4
5
6
7
  
    ## Download quarterly Australian National Accounts, Tables 1 & 2 
    ana_q <- abs_cat_stats("5206.0", tables=c("Table 1\\W+", "Table 2\\W+"));

    ## Download December 2017 Australian National Accounts, Table 1
    ana_q_2017q4 <- abs_cat_stats("5206.0", tables="Table 1\\W+", release="Dec 2017");
  

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