get_daily_weather: Scrape daily weather records for Bath

Description Usage Arguments Value Examples

Description

This function scrapes the Wunderground website to get daily weather summaries for Bath over a given date range.

Usage

1

Arguments

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.

Value

A data frame of daily weather summaries for each day in the specified range.

Examples

 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)

owenjonesuob/BANEScarparking documentation built on April 21, 2020, 10:15 a.m.