tidy_abs: Tidy ABS time series data.

Description Usage Arguments Value Examples

View source: R/tidy_abs.R

Description

Tidy ABS time series data.

Usage

1
tidy_abs(df, metadata = TRUE)

Arguments

df

A data frame containing ABS time series data that has been extracted using extract_abs_sheets.

metadata

logical. If 'TRUE' (the default), a tidy data frame including ABS metadata (series name, table name, etc.) is included in the output. If 'FALSE', metadata is dropped.

Value

data frame (tibble) in long format.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# First extract the data from the local spreadsheet
## Not run: 
wpi <- extract_abs_sheets("634501.xls")

## End(Not run)

# Then tidy the data extracted from the spreadsheet. Note that
# \code{extract_abs_sheets()} returns a list of data frames, so we need to
# subset the list.
## Not run: 
tidy_wpi <- tidy_abs(wpi[[1]])

## End(Not run)

readabs documentation built on May 24, 2021, 9:06 a.m.