Description Usage Arguments Details Value Author(s) Examples
Information retrieval from WDS webservices
1 2 3 4 5 6 | 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. |
Retrieve information from WDS data API in csv format.
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.
Bo Werth <bo.werth@gmail.com>
1 2 3 4 5 6 7 | ## 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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.