Description Usage Arguments Value Examples
View source: R/create_harmony_tbl_data.R
Create data for all harmony pairs in a harmony table
1 | create_harmony_tbl_data(.data, harmony_tbl = NULL, response = NULL)
|
.data |
a tsibble |
harmony_tbl |
harmony table |
response |
univariate response variable |
a list with each element containing a tibble with the harmony pair and response variable
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(gravitas)
library(dplyr)
sm <- smart_meter10 %>%
dplyr::filter(customer_id %in% c("10017936"))
harmonies <- sm %>%
harmony(
ugran = "month",
filter_in = "wknd_wday",
filter_out = c("hhour", "fortnight")
)
#harmonies <- harmonies %>% mutate(facet_variable = NA)
all_harmony <- create_harmony_tbl_data(sm,
harmony_tbl = harmonies[1:7,],
response = general_supply_kwh
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.