Learn R Programming

pxweb (version 0.5.3)

get_pxweb_levels: Get levels from API node

Description

Get levels from a node in the API. If at the lowest node, return a warning.

Usage

get_pxweb_levels(baseURL, descriptions = FALSE, quiet = FALSE, ...)

Arguments

baseURL
The base URL to use, depending on the web service.
descriptions
Whether to include node descriptions with the list of node IDs. (default: FALSE)
quiet
Quiet mode. Whether to stop with an error if the input node does not contain any subnodes. If set to TRUE, the function will quietly return FALSE without any errors. (default: FALSE)
...
further argument to send to get_pxweb_metadata

Examples

Run this code
topnode_levels <- get_pxweb_levels(baseURL = base_url("api.scb.se", "v1", "sv"))

Run the code above in your browser using DataLab