View source: R/create_harmony_data.R
create_harmony_data | R Documentation |
Create data for one harmony pair
create_harmony_data(.data, harmony_tbl_row, response)
.data |
a tsibble |
harmony_tbl_row |
a row from the harmony table |
response |
univariate response variable |
a tibble with the harmony pair and response variable
library(dplyr) sm <- smart_meter10 %>% 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) panel_data <- create_harmony_data( sm, harmonies[3, ], general_supply_kwh )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.