Learn R Programming

NSO1212

National Statistical Office of Mongolia's Open Data API Handler for R

National Statistical Office of Mongolia (NSO) is the national statistical service and an organization of Mongolian government. NSO provides open access to official data via its API opendata.1212.mn. The package NSO1212 has functions for accessing the API service. The functions are compatible with the API v2.0 and get data-sets and its detailed information from the API.

Features

  1. Get brief information about all tables on the API
  2. Download statistical data from the API
  3. Get detailed information about a table and its classification on the API
  4. Get detailed information about all sectors on the API
  5. Get detailed information about a sub-sector on the API

Example

all.tables <- all_tables()
print(all.tables$tbl_nm)
print(all.tables$tbl_id)

nso.data <- get_table(
  tbl_id = "DT_NSO_2400_015V2",
  PERIOD = make_period(start = "201711", end = "202103", period = "M"),
  CODE = c("10", "11"),
  CODE1 = "11"
)
print(nso.data)

table_info <- get_table_info("DT_NSO_2400_015V2", simplify = TRUE)
str(table_info)

Installation

From CRAN

install.packages("NSO1212")

From the repository on GitHub

install.packages("devtools")
devtools::install_github("galaamn/NSO1212")

Author

Makhgal Ganbold, National University of Mongolia

Copyright

© 2019 - 2021 Makhgal Ganbold

Copy Link

Version

Install

install.packages('NSO1212')

Monthly Downloads

201

Version

1.4.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

MAKHGAL Ganbold

Last Published

September 29th, 2021

Functions in NSO1212 (1.4.0)

get_subsector_info

Detailed Information about a Sub-Sector
all_tables

Brief Information about All Database Tables
NSO1212

National Statistical Office of Mongolia's Open Data API Handler
get_table

Download a Database Table
get_table_info

Detailed Information about a Database Table and Its Classification
get_sector_info

Detailed Information about All Main Sectors