The first thing you need to do is get an account on the Weather Underground website. Then you need to request an API key.
To use the key you need to save your key into the .Renviron file or prodived is when asked.
Here is how to create an .Renviron file. See section 3.3.3
user_renviron = path.expand(file.path("~", ".Renviron"))
if(!file.exists(user_renviron)) # check to see if the file already exists
file.create(user_renviron)
file.edit(user_renviron) # open with another text editor if this fails
In the file enter WUNDERGROUNDID = ‘your key here’ and put your key into the single quotes and save.
Restart R and then check that you key is available.
Now you can use the functions to pull data from the Weather Underground website. Note that the free account only allows for 500 calls a day. When developing your code it is easy to exceed this limit, so limit your calls when developing.
Lets get the mean temperature for one day, January 1, 2016
library(rwunderground)
Attaching package: ‘rwunderground’
The following object is masked from ‘package:utils’:
history
buffalo <- history_daily(set_location(territory = "New York", city = "Buffalo"), date = 20160101)
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160101/q/New_York/Buffalo.json"
NAs introduced by coercion
buffalo
buffalo$mean_temp
[1] 29
Lets get three days.
buffalo.data <- numeric(3)
loc <- set_location(territory = "New York", city = "Buffalo")
buffalo <- history_daily(location = loc, date = 20160101)
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160101/q/New_York/Buffalo.json"
NAs introduced by coercion
buffalo
buffalo.data[1] <- buffalo$mean_temp
buffalo <- history_daily(location = loc, date = 20160102)
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160102/q/New_York/Buffalo.json"
NAs introduced by coercion
buffalo
buffalo.data[2] <- buffalo$mean_temp
buffalo <- history_daily(location = loc, date = 20160103)
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160103/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
buffalo
buffalo.data[3] <- buffalo$mean_temp
buffalo.data
[1] 29 30 28
mean(buffalo.data)
[1] 29
Now lets get the data for the full year.
library(stringr)
buffalo.data <- numeric()
M <- 12
B <- 31
for (m in 1:M){
for (d in 1:B){
if (m == 2 & d > 29) break
if ( ( m %in% c(4,6,9,11) ) & d > 30 ) break
# Since we need the leading zero on months and days below 10, we add a leading zero when needed.
mm <- str_pad(m, 2, pad = 0)
dd <- str_pad(d, 2, pad = 0)
buffalo <- history_daily(location = loc, date= paste0("2016",mm,dd))
mean.temp <- buffalo$mean_temp
buffalo.data <- c(buffalo.data,mean.temp)
}
}
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160101/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160102/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160103/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160104/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160105/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160106/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160107/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160108/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160109/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160110/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160111/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160112/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160113/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160114/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160115/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160116/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160117/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160118/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160119/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160120/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160121/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160122/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160123/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160124/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160125/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160126/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160127/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160128/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160129/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160130/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160131/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160201/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160202/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160203/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160204/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160205/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160206/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160207/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160208/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160209/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160210/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160211/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160212/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160213/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160214/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160215/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160216/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160217/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160218/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160219/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160220/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160221/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160222/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160223/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160224/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160225/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160226/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160227/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160228/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160229/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160301/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160302/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160303/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160304/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160305/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160306/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160307/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160308/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160309/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160310/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160311/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160312/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160313/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160314/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160315/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160316/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160317/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160318/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160319/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160320/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160321/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160322/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160323/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160324/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160325/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160326/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160327/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160328/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160329/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160330/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160331/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160401/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160402/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160403/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160404/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160405/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160406/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160407/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160408/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160409/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160410/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160411/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160412/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160413/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160414/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160415/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160416/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160417/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160418/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160419/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160420/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160421/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160422/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160423/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160424/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160425/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160426/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160427/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160428/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160429/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160430/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160501/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160502/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160503/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160504/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160505/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160506/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160507/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160508/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160509/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160510/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160511/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160512/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160513/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160514/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160515/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160516/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160517/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160518/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160519/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160520/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160521/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160522/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160523/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160524/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160525/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160526/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160527/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160528/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160529/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160530/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160531/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160601/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160602/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160603/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160604/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160605/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160606/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160607/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160608/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160609/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160610/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160611/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160612/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160613/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160614/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160615/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160616/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160617/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160618/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160619/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160620/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160621/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160622/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160623/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160624/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160625/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160626/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160627/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160628/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160629/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160630/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160701/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160702/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160703/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160704/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160705/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160706/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160707/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160708/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160709/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160710/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160711/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160712/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160713/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160714/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160715/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160716/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160717/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160718/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160719/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160720/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160721/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160722/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160723/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160724/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160725/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160726/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160727/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160728/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160729/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160730/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160731/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160801/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160802/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160803/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160804/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160805/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160806/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160807/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160808/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160809/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160810/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160811/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160812/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160813/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160814/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160815/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160816/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160817/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160818/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160819/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160820/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160821/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160822/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160823/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160824/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160825/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160826/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160827/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160828/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160829/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160830/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160831/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160901/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160902/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160903/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160904/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160905/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160906/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160907/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160908/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160909/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160910/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160911/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160912/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160913/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160914/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160915/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160916/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160917/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160918/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160919/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160920/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160921/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160922/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160923/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160924/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160925/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160926/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160927/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160928/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160929/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20160930/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161001/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161002/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161003/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161004/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161005/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161006/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161007/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161008/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161009/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161010/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161011/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161012/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161013/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161014/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161015/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161016/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161017/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161018/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161019/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161020/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161021/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161022/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161023/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161024/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161025/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161026/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161027/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161028/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161029/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161030/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161031/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161101/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161102/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161103/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161104/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161105/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161106/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161107/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161108/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161109/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161110/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161111/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161112/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161113/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161114/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161115/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161116/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161117/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161118/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161119/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161120/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161121/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161122/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161123/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161124/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161125/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161126/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161127/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161128/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161129/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161130/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161201/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161202/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161203/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161204/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161205/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161206/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161207/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161208/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161209/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161210/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161211/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161212/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161213/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161214/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161215/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161216/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161217/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161218/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161219/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161220/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161221/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161222/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161223/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161224/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161225/q/New_York/Buffalo.json"
NAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161226/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161227/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161228/q/New_York/Buffalo.json"
NAs introduced by coercionNAs introduced by coercion
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161229/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161230/q/New_York/Buffalo.json"
[1] "Requesting: http://api.wunderground.com/api/30a6dc7edc4789f6/history_20161231/q/New_York/Buffalo.json"
buffalo.data
[1] 29 30 28 15 16 27 31 33 45 36 18 22 18 21 37 36 21 15 16 22 21 17 17 21 36 40 33 33 27 34 47
[32] 46 37 50 36 31 31 38 42 34 23 11 18 6 0 15 29 23 17 31 45 36 29 28 34 32 22 32 51 40 25 26
[63] 23 25 26 30 43 54 58 49 38 40 42 50 45 50 46 35 31 31 31 40 43 40 42 40 50 47 38 46 59 50 35
[94] 26 25 25 37 42 32 29 30 45 38 38 42 51 57 58 57 52 53 59 57 47 48 48 38 43 43 45 52 50 45 50
[125] 53 54 56 60 49 50 53 61 67 61 51 43 48 56 53 54 59 61 63 64 64 67 73 74 78 78 71 71 67 70 71
[156] 70 69 67 62 54 56 59 69 65 57 60 70 73 72 74 72 75 68 68 68 67 73 78 77 70 67 68 67 65 68 72
[187] 76 78 78 77 72 72 73 79 81 78 74 70 71 78 70 69 74 80 81 78 76 74 75 77 76 75 74 74 74 74 78
[218] 80 78 73 73 79 81 83 82 84 77 75 78 74 75 78 80 73 67 69 73 77 75 75 77 74 71 72 66 65 63 68
[249] 71 74 78 80 77 77 65 64 68 64 60 65 72 72 71 69 69 70 66 56 55 61 62 65 60 61 61 62 63 63 64
[280] 65 65 57 51 49 51 61 55 50 56 69 69 69 60 54 49 44 49 47 43 39 42 41 55 48 41 54 61 51 45 52
[311] 48 50 49 44 44 45 41 50 47 46 43 45 57 49 33 31 33 31 40 43 40 40 43 52 52 41 40 38 39 37 36
[342] 38 33 28 28 26 34 30 21 13 16 27 25 17 27 33 34 35 38 32 42 39 30 34 30 34
Next we will create the dates for each day of 2016. R has a function seq() that works with dates. The as.Date() tells R that values are dates.
buffalo.date1 <- data.frame(seq(as.Date("2016/1/1"), as.Date("2016/12/31"), "days"))
Finally, we will put the dates and mean tempuratures together into a dataframe. We will use another of Hadley’s packages plyr.
library(dplyr)
buffalo.data1 <- as.data.frame(buffalo.data)
buffalo.final <- bind_cols(buffalo.date1, buffalo.data1)
colnames(buffalo.final) <- c("date","temp")
buffalo.final
summary(buffalo.final$temp)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.00 37.00 51.00 51.44 69.00 84.00
We start by making a scatterplot using base R.
plot(buffalo.final)
Next, using the qplot() function from the ggplot2 package.
library(ggplot2)
qplot(date, temp, data=buffalo.final)
And finally, using the ggplot() function.
p <- ggplot(buffalo.final, aes(date,temp))
p + geom_point()
p + geom_point() + stat_smooth(method=lm, level=0.95)
p + geom_point() + stat_smooth()
p + geom_point() + stat_smooth(method=loess)
Question: What do you see in your plot? Is it warmer in the Summer months and colder in the Winter months?