Description Usage Arguments Value Examples
This function scrapes the Wunderground website to get daily weather summaries for Bath over a given date range.
1 | get_daily_weather(from, to)
|
from |
A date or date-time object, or YYYY-MM-DD string: the first day from which to get a weather summary. |
to |
A date or date-time object, or YYYY-MM-DD string: the last day from which to get a weather summary. |
A data frame of daily weather summaries for each day in the specified range.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# Return daily weather summaries from 01 Oct 2014 to 17 Jul 2016
weather <- get_daily_weather("2014-10-01", "2016-07-17")
# Return daily event counts for all days in date range of parking records
library(lubridate)
raw_data <- get_all_crude()
df <- refine(raw_data)
weather <- rbind(get_daily_weather(min(df$LastUpdate), max(df$LastUpdate))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.