abs_read_tss: Extract data from an ABS time series data file

Description Usage Arguments Value Author(s) Examples

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

Description

This function extracts time series data from ABS data files.

This is the internal function that extracts time series data from ABS data files.

Usage

1
2
3
abs_read_tss(files, type = "tss", na.rm = TRUE)

abs_read_tss_(file, type = "tss", na.rm = na.rm)

Arguments

files

Names of one or more ABS data files

type

One of either 'tss' – ABS Time Series Spreadsheet (the Default) or 'css' – Data Cube.R

na.rm

logical. If TRUE (default), remove observations containing missing values.

Value

data frame in long format

Author(s)

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

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

Examples

1
2
3
4
5
6
7
  
    ## Read specified ABS Excel time series files
    tables <- abs_cat_tables("5206.0", releases="Latest", include_urls=TRUE);
    downloaded_tables <- abs_cat_download(tables$path_zip, exdir=tempdir())
    extracted_files <- abs_cat_unzip(downloaded_tables)
    x <- abs_read_tss(extracted_files);
  

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