history: Hourly weather data for specified date.

Description Usage Arguments Value Examples

View source: R/history.R

Description

Hourly weather data for specified date.

Usage

1
2
history(location, date = "20150101", use_metric = FALSE,
  key = get_api_key(), raw = FALSE, message = TRUE)

Arguments

location

location set by set_location

date

Date as YYYYMMDD format

use_metric

Metric or imperial units

key

weather underground API key

raw

if TRUE return raw httr object

message

if TRUE print out requested URL

Value

tbl_df with date, temperature, dew point, humidity, wind speed, gust and direction, visibility, pressure, wind chill, heat index, precipitation, condition, fog, rain, snow, hail, thunder, tornado

Examples

1
2
3
4
5
6
7
## Not run: 
history(set_location(territory = "Hawaii", city = "Honolulu"), "20130101")
history(set_location(airport_code = "SEA"), "20130101")
history(set_location(zip_code = "90210"), "20130131")
history(set_location(territory = "IR", city = "Tehran"), "20140131")

## End(Not run)

ALShum/rwunderground documentation built on May 3, 2018, 11:28 p.m.