{
  "_id": "6a16ccc2acfb0bcc41d89df6",
  "Package": "mongolstats",
  "Type": "Package",
  "Title": "Mongolian 'NSO' 'PXWeb' Data and Boundaries (Tidy Client)",
  "Version": "0.1.2",
  "Authors@R": "c(person(given = \"Temuulen\",\nfamily = \"Enebish\",\nrole = c(\"aut\", \"cre\", \"cph\"),\nemail = \"temuulen@gmail.com\"))",
  "Description": "A 'tidyverse'-friendly client for the National Statistics\nOffice of Mongolia 'PXWeb' API <https://data.1212.mn/> with\nhelpers to discover tables, variables, and fetch statistical\ndata. Also includes utilities to retrieve Mongolia\nadministrative boundaries (ADM0-ADM2) as 'sf' objects from open\nsources for mapping and spatial analysis.",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "URL": "https://temuulene.github.io/mongolstats/,\nhttps://data.1212.mn/pxweb/",
  "BugReports": "https://github.com/temuulene/mongolstats/issues",
  "License": "MIT + file LICENSE",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibicu-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev",
  "Repository": "https://temuulene.r-universe.dev",
  "Date/Publication": "2026-02-26 01:04:38 UTC",
  "RemoteUrl": "https://github.com/temuulene/mongolstats",
  "RemoteRef": "HEAD",
  "RemoteSha": "f0b83cf0afa90c64c069a14cfcf8a8ac94bd7d24",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-27 10:47:39 UTC",
    "User": "root"
  },
  "Author": "Temuulen Enebish [aut, cre, cph]",
  "Maintainer": "Temuulen Enebish <temuulen@gmail.com>",
  "MD5sum": "60a1ce0656ea7b89ef533d041c08e943",
  "_user": "temuulene",
  "_type": "src",
  "_file": "mongolstats_0.1.2.tar.gz",
  "_fileid": "7a2a9189479ea93491dfee210dc06c4f84d8567c6fd917dd1f742a8e308125b9",
  "_filesize": 1528449,
  "_sha256": "7a2a9189479ea93491dfee210dc06c4f84d8567c6fd917dd1f742a8e308125b9",
  "_created": "2026-05-27T10:47:39.000Z",
  "_published": "2026-05-27T10:51:46.587Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78060400792,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7238458724"
    },
    {
      "job": 78060400670,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7238455207"
    },
    {
      "job": 78060400675,
      "time": 206,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7238459554"
    },
    {
      "job": 78060400714,
      "time": 150,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7238440259"
    },
    {
      "job": 78059872215,
      "time": 205,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7238402591"
    },
    {
      "job": 78060400663,
      "time": 143,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7238448203"
    },
    {
      "job": 78060400690,
      "time": 103,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7238435609"
    },
    {
      "job": 78060400664,
      "time": 96,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7238433900"
    },
    {
      "job": 78060400755,
      "time": 96,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7238433562"
    }
  ],
  "_buildurl": "https://github.com/r-universe/temuulene/actions/runs/26506411916",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/temuulene/mongolstats",
  "_commit": {
    "id": "f0b83cf0afa90c64c069a14cfcf8a8ac94bd7d24",
    "author": "Temuulen <temuulen@gmail.com>",
    "committer": "Temuulen <temuulen@gmail.com>",
    "message": "fix: resolve lint warnings, BOM test failure, and version bump\n\n- Fix .px_strip_bom() to use useBytes=TRUE for cross-platform BOM removal\n- Remove explicit return() in nso_period_seq() (return_linter)\n- Add nolint for dims/url used in cli glue strings (object_usage_linter)\n- Fix indentation to 2 spaces in data-raw/ scripts (indentation_linter)\n- Remove skip_on_os('windows') from BOM test (now works everywhere)\n- Bump version 0.1.1 -> 0.1.2 (CRAN incoming feasibility)\n",
    "time": 1772067878
  },
  "_maintainer": {
    "name": "Temuulen Enebish",
    "email": "temuulen@gmail.com",
    "login": "temuulene",
    "description": "Field Epidemiologist",
    "uuid": 34262592
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "httr2",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "stringdist",
      "role": "Imports"
    },
    {
      "package": "curl",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "memoise",
      "role": "Suggests"
    },
    {
      "package": "cachem",
      "role": "Suggests"
    },
    {
      "package": "rappdirs",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    },
    {
      "package": "roxygen2",
      "role": "Suggests"
    },
    {
      "package": "lifecycle",
      "role": "Suggests"
    },
    {
      "package": "pxweb",
      "role": "Suggests"
    },
    {
      "package": "remotes",
      "role": "Suggests"
    },
    {
      "package": "httptest2",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "lintr",
      "role": "Suggests"
    },
    {
      "package": "styler",
      "role": "Suggests"
    },
    {
      "package": "future",
      "role": "Suggests"
    },
    {
      "package": "future.apply",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "forcats",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "lubridate",
      "role": "Suggests"
    }
  ],
  "_owner": "temuulene",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-40",
      "n": 38
    },
    {
      "week": "2025-42",
      "n": 1
    },
    {
      "week": "2025-47",
      "n": 13
    },
    {
      "week": "2025-48",
      "n": 3
    },
    {
      "week": "2025-49",
      "n": 4
    },
    {
      "week": "2025-50",
      "n": 4
    },
    {
      "week": "2025-51",
      "n": 2
    },
    {
      "week": "2025-52",
      "n": 3
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-04",
      "n": 11
    },
    {
      "week": "2026-05",
      "n": 3
    },
    {
      "week": "2026-09",
      "n": 2
    }
  ],
  "_tags": [],
  "_topics": [
    "api",
    "mongolia",
    "nso",
    "pxweb"
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "temuulene",
      "count": 85,
      "uuid": 34262592
    }
  ],
  "_userbio": {
    "uuid": 34262592,
    "type": "user",
    "name": "Temuulen Enebish",
    "description": "Field Epidemiologist"
  },
  "_downloads": {
    "count": 149,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mongolstats"
  },
  "_devurl": "https://github.com/temuulene/mongolstats",
  "_pkgdown": "https://temuulene.github.io/mongolstats/",
  "_searchresults": 10,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mongolstats.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/temuulene/mongolstats",
  "_realowner": "temuulene",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-01-18"
    },
    {
      "version": "0.1.1",
      "date": "2026-01-26"
    }
  ],
  "_exports": [
    "as_px_query",
    "mn_boundaries",
    "mn_boundaries_normalize",
    "mn_boundary_keys",
    "mn_fuzzy_join_by_name",
    "mn_join_by_name",
    "nso_cache_clear",
    "nso_cache_disable",
    "nso_cache_enable",
    "nso_cache_status",
    "nso_data",
    "nso_dim_values",
    "nso_dims",
    "nso_fetch",
    "nso_itms",
    "nso_itms_by_sector",
    "nso_itms_detail",
    "nso_itms_search",
    "nso_offline_disable",
    "nso_offline_enable",
    "nso_options",
    "nso_package",
    "nso_period_seq",
    "nso_query",
    "nso_rebuild_px_index",
    "nso_search",
    "nso_sectors",
    "nso_subsectors",
    "nso_table_meta",
    "nso_table_periods",
    "nso_tables",
    "nso_variables"
  ],
  "_help": [
    {
      "page": "as_px_query",
      "title": "Convert a query to a PXWeb body",
      "topics": [
        "as_px_query"
      ]
    },
    {
      "page": "mn_boundaries",
      "title": "Mongolia administrative boundaries (sf)",
      "topics": [
        "mn_boundaries"
      ]
    },
    {
      "page": "mn_boundaries_normalize",
      "title": "Add normalized name columns to boundaries",
      "topics": [
        "mn_boundaries_normalize"
      ]
    },
    {
      "page": "mn_boundary_keys",
      "title": "Boundary keys/crosswalk helper",
      "topics": [
        "mn_boundary_keys"
      ]
    },
    {
      "page": "mn_fuzzy_join_by_name",
      "title": "Fuzzy join data to boundaries by name",
      "topics": [
        "mn_fuzzy_join_by_name"
      ]
    },
    {
      "page": "mn_join_by_name",
      "title": "Join data to boundaries by (normalized) names",
      "topics": [
        "mn_join_by_name"
      ]
    },
    {
      "page": "nso_cache_clear",
      "title": "Clear cached entries",
      "topics": [
        "nso_cache_clear"
      ]
    },
    {
      "page": "nso_cache_disable",
      "title": "Disable caching",
      "topics": [
        "nso_cache_disable"
      ]
    },
    {
      "page": "nso_cache_enable",
      "title": "Enable or configure caching",
      "topics": [
        "nso_cache_enable"
      ]
    },
    {
      "page": "nso_cache_status",
      "title": "Cache status",
      "topics": [
        "nso_cache_status"
      ]
    },
    {
      "page": "nso_data",
      "title": "Fetch statistical data for a table (PXWeb)",
      "topics": [
        "nso_data"
      ]
    },
    {
      "page": "nso_dim_values",
      "title": "List values for a table dimension",
      "topics": [
        "nso_dim_values"
      ]
    },
    {
      "page": "nso_dims",
      "title": "List dimensions for a PXWeb table",
      "topics": [
        "nso_dims"
      ]
    },
    {
      "page": "nso_fetch",
      "title": "Fetch a query and return a tibble",
      "topics": [
        "nso_fetch"
      ]
    },
    {
      "page": "nso_itms",
      "title": "List available NSO tables (PXWeb)",
      "topics": [
        "nso_itms",
        "nso_tables"
      ]
    },
    {
      "page": "nso_itms_by_sector",
      "title": "List tables under a sector or sub-sector (PXWeb path)",
      "topics": [
        "nso_itms_by_sector"
      ]
    },
    {
      "page": "nso_itms_detail",
      "title": "Get variable codes for a table (PXWeb)",
      "topics": [
        "nso_itms_detail",
        "nso_variables"
      ]
    },
    {
      "page": "nso_itms_search",
      "title": "Search tables by keyword (PXWeb)",
      "topics": [
        "nso_itms_search"
      ]
    },
    {
      "page": "nso_offline_disable",
      "title": "Disable offline mode",
      "topics": [
        "nso_offline_disable"
      ]
    },
    {
      "page": "nso_offline_enable",
      "title": "Enable offline mode",
      "topics": [
        "nso_offline_enable"
      ]
    },
    {
      "page": "nso_options",
      "title": "Set or get mongolstats options",
      "topics": [
        "nso_options"
      ]
    },
    {
      "page": "nso_package",
      "title": "Fetch multiple tables and bind (PXWeb)",
      "topics": [
        "nso_package"
      ]
    },
    {
      "page": "nso_period_seq",
      "title": "Create period codes",
      "topics": [
        "nso_period_seq"
      ]
    },
    {
      "page": "nso_query",
      "title": "Create a PXWeb query object",
      "topics": [
        "nso_query"
      ]
    },
    {
      "page": "nso_rebuild_px_index",
      "title": "Rebuild PXWeb index and optionally write to a file",
      "topics": [
        "nso_rebuild_px_index"
      ]
    },
    {
      "page": "nso_search",
      "title": "Search NSO tables",
      "topics": [
        "nso_search"
      ]
    },
    {
      "page": "nso_sectors",
      "title": "List top-level categories (PXWeb NSO root)",
      "topics": [
        "nso_sectors"
      ]
    },
    {
      "page": "nso_subsectors",
      "title": "List children for a given path (PXWeb)",
      "topics": [
        "nso_subsectors"
      ]
    },
    {
      "page": "nso_table_meta",
      "title": "Table metadata as per-dimension codebooks",
      "topics": [
        "nso_table_meta"
      ]
    },
    {
      "page": "nso_table_periods",
      "title": "Get valid periods for a table (PXWeb)",
      "topics": [
        "nso_table_periods"
      ]
    },
    {
      "page": "print.nso_query",
      "title": "Print an nso_query object",
      "topics": [
        "print.nso_query"
      ]
    }
  ],
  "_pkglogo": "https://github.com/temuulene/mongolstats/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/temuulene/mongolstats/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "class",
    "classInt",
    "cli",
    "curl",
    "DBI",
    "dplyr",
    "e1071",
    "generics",
    "glue",
    "httr2",
    "jsonlite",
    "KernSmooth",
    "lifecycle",
    "magrittr",
    "MASS",
    "openssl",
    "pillar",
    "pkgconfig",
    "proxy",
    "purrr",
    "R6",
    "rappdirs",
    "Rcpp",
    "rlang",
    "s2",
    "sf",
    "stringdist",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyselect",
    "units",
    "utf8",
    "vctrs",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "discovery.Rmd",
      "filename": "discovery.html",
      "title": "Discovering Public Health Data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Finding Health Tables",
        "Search by Keyword",
        "Browse by Sector",
        "Case Study: Cancer Epidemiology",
        "Exploring Cancer Incidence Data",
        "Fetching and Visualizing Cancer Trends",
        "Regional Disparities",
        "Time Trend Analysis",
        "Case Study: Tuberculosis Burden",
        "Tips for Epidemiological Research",
        "Next Steps"
      ],
      "created": "2025-10-01 02:38:55",
      "modified": "2026-01-24 18:53:16",
      "commits": 14
    },
    {
      "source": "environmental-surveillance.Rmd",
      "filename": "environmental-surveillance.html",
      "title": "Environmental Data Analysis",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Air Quality Monitoring",
        "Pollutant Concentrations by Station",
        "PM2.5 Trends: High-Risk Stations",
        "Sulfur Dioxide (SO₂) Trends: The Coal Combustion Signature",
        "Regulatory Compliance: Exceedance Factor",
        "Water Quality Monitoring",
        "Climate Exposure: Dust Days",
        "Geographic Context",
        "Next Steps",
        "Key Environmental Tables"
      ],
      "created": "2025-11-29 05:52:42",
      "modified": "2026-01-26 07:13:55",
      "commits": 11
    },
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting Started",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation",
        "Your First Analysis: Infant Mortality Trends",
        "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 Disparities",
        "Adding Geographic Context",
        "Key Functions Summary",
        "Best Practices",
        "Common Workflows",
        "Time Series Analysis",
        "Spatial Epidemiology",
        "Next Steps",
        "Quick Reference: Common Health Tables"
      ],
      "created": "2025-09-30 04:41:50",
      "modified": "2026-01-24 18:53:16",
      "commits": 21
    },
    {
      "source": "mapping.Rmd",
      "filename": "mapping.html",
      "title": "Spatial Epidemiology with mongolstats",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Getting Boundary Data",
        "Case Study: Maternal Mortality Geography",
        "Understanding Regional Disparities",
        "Creating a Choropleth Map",
        "Case Study: Infant Mortality Hot Spots",
        "Identifying High-Risk Regions",
        "Tips for Spatial Epidemiology",
        "Next Steps"
      ],
      "created": "2025-09-30 04:41:50",
      "modified": "2026-01-24 18:53:16",
      "commits": 18
    },
    {
      "source": "ub-health-environment.Rmd",
      "filename": "ub-health-environment.html",
      "title": "Ulaanbaatar District-Level Analysis",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Methodology: Dynamic Data Retrieval",
        "1. Demographic Profile",
        "Population Density",
        "Population Growth Trends",
        "2. Socioeconomic Indicators",
        "Educational Load (Students per School)",
        "3. Public Health Overview",
        "Respiratory Mortality",
        "Infant Mortality Rate (IMR)",
        "4. Multivariate Analysis",
        "Key Insights",
        "4. Air Quality Monitoring Network",
        "Station-to-District Mapping",
        "Spatial Distribution Map",
        "Station Coverage Analysis",
        "Conclusion"
      ],
      "created": "2025-11-29 05:52:42",
      "modified": "2026-01-24 18:53:16",
      "commits": 5
    }
  ],
  "_score": 5.477121254719663,
  "_indexed": true,
  "_nocasepkg": "mongolstats",
  "_universes": [
    "temuulene"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-27T10:50:13.000Z",
      "distro": "noble",
      "commit": "f0b83cf0afa90c64c069a14cfcf8a8ac94bd7d24",
      "fileid": "bff32f2b03c79e5bb80f72a103d90c4785153f96864d3f3289e434a2c81c4847",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/temuulene/actions/runs/26506411916"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-27T10:50:13.000Z",
      "distro": "noble",
      "commit": "f0b83cf0afa90c64c069a14cfcf8a8ac94bd7d24",
      "fileid": "35485fe0e86a84b724da8420f5ab13c64d7622f7ce9fb4d3401aa7feb10cd17e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/temuulene/actions/runs/26506411916"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-27T10:50:30.000Z",
      "commit": "f0b83cf0afa90c64c069a14cfcf8a8ac94bd7d24",
      "fileid": "22f8d3917c00eb046dcf7ee179ed2ca59734c34d7b996440a2ffbd788671a8d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/temuulene/actions/runs/26506411916"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-27T10:49:33.000Z",
      "commit": "f0b83cf0afa90c64c069a14cfcf8a8ac94bd7d24",
      "fileid": "434c4962197a3b4e637568a84ba3fc51e7aa834cb24f0a84e3544f7692a8cc6c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/temuulene/actions/runs/26506411916"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-05-27T10:50:19.000Z",
      "commit": "f0b83cf0afa90c64c069a14cfcf8a8ac94bd7d24",
      "fileid": "a231cbc248308d986350a1f380f72fc3c006d3a97af42d8cf319dd3505d2bb4d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/temuulene/actions/runs/26506411916"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-27T10:49:07.000Z",
      "commit": "f0b83cf0afa90c64c069a14cfcf8a8ac94bd7d24",
      "fileid": "a557102bb2d6e44c8106ee6755f99ebcd6a1b8ed749198855e04d84fec5ae1fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/temuulene/actions/runs/26506411916"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-27T10:48:59.000Z",
      "commit": "f0b83cf0afa90c64c069a14cfcf8a8ac94bd7d24",
      "fileid": "841a948ab8881c78039774a9afc30a0938fecc26e5cca9cdbfe8c85e90398135",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/temuulene/actions/runs/26506411916"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-27T10:48:59.000Z",
      "commit": "f0b83cf0afa90c64c069a14cfcf8a8ac94bd7d24",
      "fileid": "efef33661a1fe76e69c3b60f24b003bb720a66a20589f0f4d6baa63a5a998fc6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/temuulene/actions/runs/26506411916"
    }
  ]
}