Retrieves the public aggregate endpoint used by data.nso.mn. This service
has an unversioned interface and a separate identifier and geography scheme
from PXWeb. Similar titles or identifiers do not establish equivalence.
Usage
nso_portal_data(
indicator_id,
area = "1",
dimension = "code",
graph_type = "line",
periods = NULL,
labels = c("both", "mn", "en", "code"),
include_raw = FALSE
)Arguments
- indicator_id
Portal identifier from
nso_indicators()withsource = "portal", without theportal:prefix.- area
Portal area parameter, as a nonnegative integer string. The default
"1"reproduces the verified national GDP request. This is an upstream request parameter, not a PXWeb geography selection.- dimension
Portal grouping field:
"code","code1", ...,"code6".- graph_type
Portal presentation parameter, such as
"line". It is sent to the source endpoint and can affect which records it returns.- periods
Optional character vector of exact source period labels. Filtering takes place after retrieval. A trailing
*is preserved.- labels
Official label columns to retain:
"both","mn","en", or"code". Codes are always retained; missing labels remain missing.- include_raw
Attach the original response as attribute
portal_raw.
Value
A tibble containing backend, source_id, period, date,
frequency, active code dimensions, optional official label columns,
value, value_raw, value_status, and registry unit and source.
Unknown symbols have status "symbol"; no suppression meaning is inferred.
An empty source response returns zero rows; request failures raise errors.
A provenance attribute records the request and optional metadata failures.
Details
The registry supplies source and unit text verbatim when available. It is
descriptive source metadata, not an independently validated semantic
crosswalk. Narrative summaries are not used to construct observations.
Unpadded YYYY-1 to YYYY-4 periods are ambiguous between months and
quarters, so their dates and frequencies remain missing.