Learn R Programming

pxweb (version 0.5.3)

interactive_pxweb: Find and download data interactively from PX-WEB API

Description

Wrapper function (for get_pxweb_data and get_pxweb_metadata) to simply find and download data to the current R session.

Usage

interactive_pxweb(api = NULL, version = NULL, language = NULL,
  history = FALSE, ...)

Arguments

api
The name of the pxweb api to connect to or an pxweb_api object. Use api_catalogue to get a list of apis.
version
The version of the pxweb api to use. Default is pxweb api default, see api_catalogue.
language
The language of the pxweb api to use. Default is english.
history
keep the history when the function is running.
...
further parameters. These are currently ignored.

See Also

get_pxweb_metadata, get_pxweb_data

Examples

Run this code
api_catalogue() # List apis
d <- interactive_pxweb()
 d <- interactive_pxweb("api.scb.se")
 d <- interactive_pxweb(api = "statistik.sjv.se")
 d <- interactive_pxweb("api.scb.se", language = "sv")

Run the code above in your browser using DataLab