Learn R Programming

rwunderground (version 0.1.8)

history_daily: Summarized weather data for specified date.

Description

Summarized weather data for specified date.

Usage

history_daily(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 of summarized weather

Examples

Run this code
# NOT RUN {
history_daily(set_location(territory = "Hawaii", city = "Honolulu"), "20130101")
history_daily(set_location(airport_code = "SEA"), "20130101")
history_daily(set_location(zip_code = "90210"), "20130131")
history_daily(set_location(territory = "IR", city = "Tehran"), "20140131")
# }

Run the code above in your browser using DataLab