read_abs_local: Read and tidy locally-saved ABS time series spreadsheet(s)

Description Usage Arguments Details Examples

Description

If you need to download and tidy time series data from the ABS, use read_abs(). read_abs_local() imports and tidies data from ABS time series spreadsheets that are already saved to your local drive.

Usage

1
read_abs_local(filenames = NULL, path = "data/ABS")

Arguments

filenames

character vector of at least one filename of a locally-stored ABS time series spreadsheet. For example, "6202001.xls" or c("6202001.xls", "6202005.xls"). If 'filenames' is blank, 'read_abs_local()' will attempt to read all .xls files in the directory specified with 'path'. Please note that the directory should be specified with 'path'.

path

path to local directory containing ABS time series file(s). Default is "data/ABS". If nothing is specified in 'filenames', 'read_abs_local()' will attempt to read all .xls files in the directory specified with 'path'.

Details

Unlike read_abs(), the 'table_title' column in the data frame returned by read_abs_local() is blank. If you require 'table_title', please use read_abs() instead.

Examples

1
2
3
4
 # Load and tidy two specified files from the "data/ABS" subdirectory
 # of your working directory

 lfs <- read_abs_local(c("6202001.xls", "6202005.xls"))

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