add_time_to_weather_data <- function(drivers)
{
if ("doy" %in% names(drivers) &&
"hour" %in% names(drivers) &&
!"time" %in% names(drivers))
{
drivers$time <- 24 * (drivers$doy - 1) + drivers$hour
drivers$doy <- NULL
drivers$hour <- NULL
}
drivers
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.