powered by
Executes an nso_query and returns a tidy tibble with one column per dimension and a numeric value column. Use labels to add _en/_mn columns for each dimension.
nso_query
value
labels
_en
_mn
nso_fetch( x, labels = c("code", "en", "mn", "both"), value_name = getOption("mongolstats.value_name", "value"), include_raw = getOption("mongolstats.attach_raw", FALSE) )
A tibble.
An nso_query object.
One of "code", "en", "mn", or "both" (mapped to internal API).
Name of the numeric value column in the result (default: "value").
If TRUE, attach the raw PX payload as attribute px_raw.
px_raw
q <- nso_query("DT_NSO_0300_001V2", list(Year = "2023")) data <- nso_fetch(q) head(data)
Run the code above in your browser using DataLab