Learn R Programming

pxweb (version 0.17.0)

pxweb_data_comments: Construct a pxweb_data_comments object.

Description

An object that contain the comments for a given PXWEB table.

Usage

pxweb_data_comments(x)

# S3 method for pxweb_data pxweb_data_comments(x)

Value

a pxweb_data_comments object

Arguments

x

a pxweb_data object.

Examples

Run this code
if (FALSE) {
url <- "https://api.scb.se/OV0104/v1/doris/en/ssd/BE/BE0101/BE0101A/BefolkningNy"
json_query <-
  file.path(system.file(package = "pxweb"), "extdata", "examples", "json_query_example.json")
pxd <- pxweb_get(url = url, query = json_query)
pxdcs <- pxweb_data_comments(x = pxd)
pxdc_df <- as.data.frame(pxdcs, stringsAsFactors = TRUE)
}

Run the code above in your browser using DataLab