View source: R/pxweb_interactive.R
pxweb_interactive | R Documentation |
Wrapper function (for pxweb_get) to simply find and download data to the current R session.
pxweb_interactive(x = NULL) interactive_pxweb(x = NULL)
x |
The name or alias of the pxweb api to connect to, a |
The function returns a list with three slots:
url
: The URL to the data
query
: The query to access the data
data
: The downloaded data (if chosen to download data)
pxweb_get
pxweb_api_catalogue() # List apis ## The examples below can only be run in interactive mode ## x <- pxweb_interactive() ## x <- pxweb_interactive(x = "api.scb.se") ## x <- pxweb_interactive(x = "https://api.scb.se/OV0104/v1/doris/en/ssd/BE/BE0101/") ## x <- pxweb_interactive(x = "https://api.scb.se/OV0104/v1/doris/en/ssd/BE/BE0101/BE0101A/")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.