read_abs_local {readabs} | R Documentation |
Read and tidy locally-saved ABS time series spreadsheet(s)
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
read_abs_local(
cat_no = NULL,
filenames = NULL,
path = Sys.getenv("R_READABS_PATH", unset = tempdir()),
use_fst = TRUE,
metadata = TRUE
)
Arguments
cat_no |
character; a single catalogue number such as "6202.0".
When |
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"). Ignored if a value is supplied to |
path |
path to local directory containing ABS time series file(s).
Default is |
use_fst |
logical. If |
metadata |
logical. If |
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
# Load and tidy two specified files from the "data/ABS" subdirectory
# of your working directory
## Not run:
lfs <- read_abs_local(c("6202001.xls", "6202005.xls"))
## End(Not run)