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)

Arguments

data

a data frame created with wdsAPI

str

a character string with WDS dates, e.g. "2001"

Value

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.

Details

Retrieve information from WDS data API in csv format.

Examples

# 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)
# }