read_abs: Download, extract, and tidy ABS time series spreadsheets

Description Usage Arguments Value Examples

Description

read_abs() downloads ABS time series spreadsheets, then extracts the data from those spreadsheets, then tidies the data. The result is a single data frame (tibble) containing tidied data.

Usage

1
read_abs(cat_no = NULL, path = "data/ABS", show_progress_bars = TRUE)

Arguments

cat_no

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

path

Local directory in which to save downloaded ABS time series spreadsheets. Default is "data/ABS"; this subdirectory of your working directory will be created if it does not exist.

show_progress_bars

TRUE by default. If set to FALSE, progress bars will not be shown when ABS spreadsheets are downloading.

Value

A data frame (tibble) containing the tidied data from the ABS time series table(s).

Examples

1
2
3
# Download and tidy all time series spreadsheets from the Wage Price Index (6345.0)

wpi <- read_abs("6345.0")

MattCowgill/getabs documentation built on May 8, 2019, 8:55 p.m.