add_hourly_temps | R Documentation |
Add hourly temps to data frame
add_hourly_temps(data, lat, hours)
data |
data frame with columns date, tmin, and tmax |
lat |
location latitude |
hours |
either single value or list of hours of the day to calculate |
data frame with added columns hour and temp
data.frame(date = seq(as.Date("2000/1/1"), as.Date("2000/1/3"), "days"), tmin = c(1, 2, 6), tmax = c(10, 12, 15)) %>% add_hourly_temps(lat = 45, hours = 0:23)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.