Learn R Programming

mongolstats (version 0.1.1)

as_px_query: Convert a query to a PXWeb body

Description

Convert a query to a PXWeb body

Usage

as_px_query(x, lang = .px_lang())

Value

A list suitable to send as JSON body to PXWeb.

Arguments

x

An nso_query object.

lang

PX language: "en" or "mn" (defaults to current option).

Examples

Run this code
q <- nso_query("DT_NSO_0300_001V2", list(Year = "2023"))
body <- as_px_query(q)

Run the code above in your browser using DataLab