history_range: Hourly weather data for specified date range.

Description Usage Arguments Value Examples

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)

Example output

Attaching package: 'rwunderground'

The following object is masked from 'package:utils':

    history

Error : Please set env var WUNDERGROUNDID to your weather underground API key
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
# A tibble: 0 x 0
Error : Please set env var WUNDERGROUNDID to your weather underground API key
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
# A tibble: 0 x 0
Error : Please set env var WUNDERGROUNDID to your weather underground API key
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
# A tibble: 0 x 0
Error : Please set env var WUNDERGROUNDID to your weather underground API key
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
Error : Please set env var WUNDERGROUNDID to your weather underground API key
In addition: Warning message:
In paste(base_url(), key, request_type, "q", location, sep = "/") :
  restarting interrupted promise evaluation
# A tibble: 0 x 0

rwunderground documentation built on May 2, 2019, 2:46 a.m.