Learn R Programming

readabs (version 0.4.18)

tidy_abs: Tidy ABS time series data.

Description

Tidy ABS time series data.

Usage

tidy_abs(df, metadata = TRUE)

Value

data frame (tibble) in long format.

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.

Examples

Run this code

# First extract the data from the local spreadsheet
if (FALSE) {
wpi <- extract_abs_sheets("634501.xls")
}

# 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.
if (FALSE) {
tidy_wpi <- tidy_abs(wpi[[1]])
}

Run the code above in your browser using DataLab