Description Usage Arguments Details Value Author(s) Examples
Information retrieval from PX-Web webservices
1 2 3 | pxwebDFtoXTS(data = stop("'data' must be provided"))
pxwebChangeDates(str)
|
data |
a data frame created with |
str |
a character string with PXWEB dates, e.g. |
Retrieve information from PX-Web data APIs.
Convert data frame retrieved by get_pxweb_data
into xts object.
Bo Werth <bo.werth@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
dims_list <- list(SNI2007 = c('*'),
Transaktionspost = c('*'),
ContentsCode = c('*'),
Tid = c('*'))
req.uri <- "http://api.scb.se/OV0104/v1/doris/en/ssd"
data.df <- pxweb::get_pxweb_data(url = req.uri, dims = dims_list, clean = TRUE)
## convert to xts object, e.g. for use in \code{dygraphs} package
data.xts <- pxwebDFtoXTS(data = data.df)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.