Package: mongolstats 0.4.0

Temuulen Enebish

mongolstats: Tidy Access to Mongolian Official Statistics and Metadata

A 'tidyverse'-friendly client for the public statistical services of the National Statistics Office of Mongolia <https://data.1212.mn/>. Discover tables and their dimensions, and fetch statistical data as 'tibble' data frames with English or Mongolian labels. Periods are reported by their labels and can be selected in any of the office's period formats, tables that have moved within the catalogue are found automatically, and large requests are split to stay within the server's limits. Source provenance and raw observation symbols support reproducible exports. Experimental clients provide access to the public data and metadata portals, including official definitions, collection forms, classifications, and reviewed indicator queries. Maps and joins by statistical code are provided by the companion package 'mongolmaps'.

Authors:Temuulen Enebish [aut, cre, cph], National Statistics Office of Mongolia [cph]

mongolstats_0.4.0.tar.gz
mongolstats_0.4.0.zip(r-4.7-any)mongolstats_0.4.0.zip(r-4.6-any)
mongolstats_0.4.0.tar.gz(r-4.7-any)mongolstats_0.4.0.tar.gz(r-4.6-any)
mongolstats_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
mongolstats/json (API)

# Install 'mongolstats' in R:
install.packages('mongolstats', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/temuulene/mongolstats/issues

Pkgdown/docs site:https://temuulene.github.io

On CRAN:

Conda:

4.19 score 13 scripts 235 downloads 54 exports 26 dependencies

Last updated from:465bf78a56. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK164
source / vignettesOK204
linux-releaseOK181
windows-develOK112
windows-releaseOK118
wasm-releaseOK110

Exports:as_px_querymn_boundariesmn_boundaries_normalizemn_boundary_keysmn_fuzzy_join_by_namemn_join_by_namenso_api_confignso_cache_clearnso_cache_disablenso_cache_enablenso_cache_statusnso_catalogue_statusnso_check_datanso_citationnso_classificationnso_datanso_dim_valuesnso_dimsnso_fetchnso_formsnso_indicatornso_indicator_querynso_indicatorsnso_itmsnso_itms_by_sectornso_itms_detailnso_itms_searchnso_latest_periodsnso_metadatanso_metadata_dictionarynso_metadata_searchnso_offline_disablenso_offline_enablenso_optionsnso_packagenso_period_datenso_period_seqnso_portal_datanso_portal_datamartsnso_provenancenso_querynso_read_manifestnso_rebuild_px_indexnso_relatednso_searchnso_sectorsnso_subsectorsnso_table_infonso_table_metanso_table_periodsnso_tablesnso_value_statusnso_variablesnso_write_manifest

Dependencies:askpassclicurldigestdplyrfilelockgenericsgluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigpurrrR6rlangstringistringrsystibbletidyselectutf8vctrswithr

Discovering Public Health Data
Overview | Finding Health Tables | Search by Keyword | Browse by Sector | Case Study: Cancer Incidence | Exploring the Table | Incidence by Site | Crude versus Age-Standardised Incidence | Finding Numerators and Denominators | Case Study: Tuberculosis Notifications | Tips for Epidemiological Research | Next Steps

Last update: 2026-10-31
Started: 2026-01-18

Environmental Data Analysis
Overview | Air Quality Monitoring | Most Polluted Stations | PM2.5: Monthly Trends | PM2.5: Days Above the Standard | Sulphur Dioxide (SO₂) | Annual Means Against the Standards | Water Quality Monitoring | The Tuul River Through Ulaanbaatar | Dust Days | Mapping Dust Days | Next Steps | Key Environmental Tables

Last update: 2026-10-31
Started: 2026-01-18

Getting Started
Installation | Your First Analysis: Infant Mortality | Step 1: Load Packages | Step 2: Find the Right Table | Step 3: Explore Table Metadata | Step 4: Fetch Data | Step 5: Visualize the Trend | Regional Comparison | Visualize Regional Differences | Adding Geographic Context | Key Functions Summary | Best Practices | Common Workflows | Time Series Analysis | Spatial Epidemiology | Next Steps | Quick Reference: Common Health Tables

Last update: 2026-10-31
Started: 2026-01-18

Sources, metadata, and reproducible exports / Эх сурвалж, мета өгөгдөл, давтагдах экспорт
Choose the source / Эх сурвалжаа сонгох | Start with a reviewed concept / Хянасан үзүүлэлтээс эхлэх | Inspect source information / Эх сурвалжийн мэдээллийг шалгах | Keep source symbols / Анхны тэмдэглэгээг хадгалах | Export a durable record / Тогтвортой бүртгэлтэй экспорт хийх | Find definitions and collection context / Тодорхойлолт, цуглуулалтын нөхцөлийг олох | Check discovery freshness / Хайлтын шинэ байдлыг шалгах | Use the public portal explicitly / Нээлттэй порталыг тусад нь ашиглах

Last update: 2026-10-31
Started: 2026-10-31

Spatial Epidemiology with mongolstats
Overview | Getting Boundary Data | Region codes in NSO tables | Case Study: Maternal Mortality | Check the counts before mapping | Pooled maternal mortality ratio | Choropleth and confidence intervals | Case Study: Infant Mortality | Funnel plot | Mapping the signals | Tips for Spatial Epidemiology | Next Steps

Last update: 2026-10-31
Started: 2026-01-18

Ulaanbaatar District-Level Analysis
Introduction | Districts and Their Codes | 1. Demographic Profile | Population Density | Population Growth Trends | 2. School Capacity | 3. Health Statistics by District: A Caution | 4. Air Quality Monitoring Network | Spatial Distribution | Coverage | Conclusion

Last update: 2026-10-31
Started: 2026-01-18

Readme and manuals

Help Manual

Help pageTopics
Convert a query to a PXWeb bodyas_px_query
Mongolia administrative boundaries (sf)mn_boundaries
Add normalized name columns to boundariesmn_boundaries_normalize
Boundary keys/crosswalk helpermn_boundary_keys
Fuzzy join data to boundaries by namemn_fuzzy_join_by_name
Join data to boundaries by (normalized) namesmn_join_by_name
Inspect PXWeb server configurationnso_api_config
Clear cached entriesnso_cache_clear
Disable cachingnso_cache_disable
Enable or configure cachingnso_cache_enable
Cache statusnso_cache_status
Inspect the freshness and coverage of the table cataloguenso_catalogue_status
Inspect statistical results for analytical concernsnso_check_data
Generate source citations for fetched statisticsnso_citation
Retrieve a versioned metadata classification codebooknso_classification
Fetch statistical data for a table (PXWeb)nso_data
List values for a table dimensionnso_dim_values
List dimensions for a PXWeb tablenso_dims
Fetch a query and return a tibblenso_fetch
List collection forms embedded in a metadata database recordnso_forms
Look up a reviewed concept or a source-qualified portal indicatornso_indicator
Build a PXWeb query from a reviewed statistical conceptnso_indicator_query
Discover reviewed statistical concepts or portal indicatorsnso_indicators
List tables under a sector or sub-sector (PXWeb path)nso_itms_by_sector
Most recent periods of a tablenso_latest_periods
Retrieve a typed record from the government metadata cataloguenso_metadata
Retrieve official metadata category dictionariesnso_metadata_dictionary
Search or browse the government metadata cataloguenso_metadata_search
Disable offline modenso_offline_disable
Enable offline modenso_offline_enable
Set or get mongolstats optionsnso_options
Fetch multiple tables and bind (PXWeb)nso_package
Convert NSO period labels to datesnso_period_date
Create a sequence of periodsnso_period_seq
Fetch a statistical series from the government data portalnso_portal_data
Discover public aggregate datamartsnso_portal_datamarts
Retrieve a data result's provenance manifestnso_provenance
Create a PXWeb query objectnso_query
Rebuild PXWeb index and optionally write to a filenso_rebuild_px_index
Inspect relationships in a metadata recordnso_related
Search NSO tablesnso_search
List top-level categories (PXWeb NSO root)nso_sectors
List children for a given path (PXWeb)nso_subsectors
Inspect table source informationnso_table_info
Table metadata as per-dimension codebooksnso_table_meta
Periods available in a tablenso_table_periods
List NSO tablesnso_tables
Inspect source values and observation statusnso_value_status
Variables and values of a tablenso_variables
Save or reload a provenance sidecarnso_read_manifest nso_write_manifest