history_range: Hourly weather data for specified date range.

Description Usage Arguments Value Examples

View source: R/history.R

Description

Hourly weather data for specified date range.

Usage

1
2
3
history_range(location, date_start = "20150101", date_end = "20150105",
  limit = 10, no_api = FALSE, use_metric = FALSE, key = get_api_key(),
  raw = FALSE, message = TRUE)

Arguments

location

location set by set_location

date_start

start date

date_end

end date

limit

Maximum number of API requests per minute, NULL to have no limits

no_api

bypass API and use URL requests

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_range(set_location(territory = "Hawaii", city = "Honolulu"), "20130101", "20130105")
history_range(set_location(airport_code = "SEA"), "20130101", "20130105")
history_range(set_location(zip_code = "90210"), "20130131", "20130205")
history_range(set_location(territory = "IR", city = "Tehran"), "20140131", "20140202")

## End(Not run)

ALShum/rwunderground documentation built on May 5, 2019, 11:34 a.m.