Skip to contents

These experimental interfaces expose the public catalogue at https://metadata.nso.mn/. Its numeric identifiers belong to a separate service from PXWeb table identifiers. An indicator can describe a questionnaire field rather than a published statistical series.

Usage

nso_metadata(type, id, include_raw = FALSE)

Arguments

type

Entity type: "database", "table", "indicator", "classification", or "form".

id

A positive integer identifier in the metadata service.

include_raw

Retain the complete parsed response in $raw.

Value

An nso_metadata list with source-qualified identity, official Mongolian text and available English text, dates, integer years, methodology, access statements, relationships, and quality flags. $context retains units, value types, collection sources, dissemination levels, and the responsible department. Its category records preserve source identifiers and official labels. $date_fields retains original date and year values, including invalid values, alongside parsed $dates and $years, even when include_raw = FALSE. Missing translations remain NA; no translation is generated. Dates use the calendar date supplied by the service, independent of the local time zone. Access statements and licence categories do not establish that the underlying records are publicly downloadable.

Details

Quality flags identify potential inconsistencies and do not correct the upstream record. include_raw = TRUE preserves unrecognized fields for inspection. These endpoints have no published stability guarantee. The upstream site's certificate chain may be incomplete on some systems; requests can then fail certificate verification.

Examples

if (FALSE) { # identical(Sys.getenv("NOT_CRAN"), "true") && curl::has_internet()
field <- nso_metadata("indicator", 12925, include_raw = TRUE)
field$quality_flags
nso_related(field)
}