Description Usage Arguments Details Examples
View source: R/DownloadWunderground.R
Function to download 5min weather data from the www.wunderground.nl website. For a specific time period, station and variable(s) the data can be downloaded and saved in a directory. For each stationname a new folder is created (unless) the folder already exists. After downloading the daily files all the .txt files are combined and the daily files are deleted.
1 2 3 4 |
stationname |
Character, name of the station |
start |
Date, start of the download period |
stop |
Date, stop period of the download period |
var |
Character, variable(s) which you want to download |
folder.loc |
Character, location were the data will be stored. For each stationname a new folder is created. |
Download Wunderground data
1 2 3 4 5 6 7 8 9 | #Run the example below to store data at the current location
download_time_seq(stationname = "IZUIDHOL87",
start = as.Date("2018/04/01"),
stop = as.Date("2018/05/01"),
var = "TemperatureC",
folder.loc = ".")
For multiple stations use lapply:
stations<-c('IZUIDHOL36','ILIMBURG36')
lapply(stations,download_time_seq)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.