View source: R/separate_series.R
separate_series | R Documentation |
Separate the 'series' column in a data frame (tibble)
downloaded using read_abs()
into multiple columns using the ";"
separator.
separate_series(
data,
column_names = NULL,
remove_totals = FALSE,
remove_nas = FALSE
)
data |
A data frame (tibble) containing tidied data from the ABS time series table(s). |
column_names |
(optional) character vector. Supply a vector of column
names, such as |
remove_totals |
logical. FALSE by default. If set to TRUE, any series rows that contain the word "total" will be removed. |
remove_nas |
locical. FALSE by default. If set to TRUE, any rows containining an NA in at least one of the separated series columns will be removed. |
A data frame (tibble) containing the tidied data from the ABS time series table(s).
## Not run:
wpi <- read_abs("6345.0", 1) %>%
separate_series()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.