Learn R Programming

pxweb (version 0.19.2)

pxweb_v2_data_query_params: Build PXWEB API v2 data endpoint query parameters.

Description

Creates the query parameter list sent to PXWEB API v2 /tables/{tableId}/data requests. The language is taken from the URL when present, otherwise from the raw v2 metadata attached to pxmd.

Usage

pxweb_v2_data_query_params(px, pxmd = NULL, output_format = "json-stat2")

Value

a named list of query parameters.

Arguments

px

a pxweb object.

pxmd

optional pxweb_metadata object created from a v2 metadata response.

output_format

data output format requested from the API. Defaults to "json-stat2".