Closed crazyhottommy closed 7 years ago
Hi Tommy,
Thanks for noticing this. The reason for this is that weatherUnderground doesn't want us to pull a huge volume of data in a single file. (For some reason, they truncate the number of rows to be 400 rows or less.)
Here's working code that should do what you wish:
multi_weather <- lapply(as.character(2001:2004),
function(x){getWeatherForYear("ORD", x)})
df_allyears <- do.call(rbind, multi_weather)
A few others have also asked for it. I might make it a proper function in a future version. For now though, this should work. (Please change the years to whatever you wish them to be.
Please let me know if this doesn't work for you.
Thanks! this worked!
Hi, First thanks for this package. I installed from github.
Why I am missing the data after 2002?
Thanks! Tommy