Learn R Programming

mongolstats (version 0.1.1)

nso_dim_values: List values for a table dimension

Description

Returns codes and optional labels for a specific dimension.

Usage

nso_dim_values(tbl_id, dim, labels = c("code", "en", "mn", "both"))

Value

A tibble with at least code; may include label_en and/or label_mn.

Arguments

tbl_id

Table identifier (e.g., "DT_NSO_0300_001V2").

dim

Dimension name or code (case-insensitive; exact match preferred).

labels

One of "code", "en", "mn", or "both" to control returned label columns.

Examples

Run this code
values <- nso_dim_values("DT_NSO_0300_001V2", "Year")
head(values)

Run the code above in your browser using DataLab