Information retrieval from WDS webservices
wdsAPI(dataset = stop("'dataset' must be provided"), query = FALSE, curl = NULL, ...) wdsDFtoXTS(data = stop("'data' must be provided")) wdsChangeDates(str)
data | a data frame created with |
---|---|
str | a character string with WDS dates, e.g. |
The wdsAPI
function creates an URL with with the specified parameters, retrieves the zip file, extracts a csv file that is read into R and returned as data frame. wdsDFtoXTS
converts the returned data frame to an xts object.
Retrieve information from WDS data API in csv format.
# NOT RUN { data.df <- wdsAPI(dataset = "2810027") ## convert to xts object, e.g. for use in \code{dygraphs} package data.xts <- wdsDFtoXTS(data = data.df) # }