#' @export
temperatureSeriesToDf <- function(temperature_series) {
timetk::tk_tbl(temperature_series)
}
#' @export
tidyTemperatures <- function(temperatures) {
temperatures %>%
tidyr::separate(col = index,
# index automatically generated by tk_tbl()
into = c("month", "year"),
sep = " ")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.