Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makhgal-ganbold/nso1212
An R package
https://github.com/makhgal-ganbold/nso1212
r-language r-package statistics
Last synced: about 2 months ago
JSON representation
An R package
- Host: GitHub
- URL: https://github.com/makhgal-ganbold/nso1212
- Owner: makhgal-ganbold
- License: gpl-3.0
- Created: 2019-01-23T18:24:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-29T05:23:08.000Z (about 3 years ago)
- Last Synced: 2024-11-05T10:55:35.641Z (about 2 months ago)
- Topics: r-language, r-package, statistics
- Language: R
- Homepage: https://www.galaa.mn
- Size: 43.9 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](http://opendata.1212.mn/en/doc). 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
```R
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
```R
install.packages("NSO1212")
```From the repository on GitHub
```R
install.packages("devtools")
devtools::install_github("galaamn/NSO1212")
```## Author
[Makhgal Ganbold](https://www.galaa.mn/ "Galaa's Personal Page"), National University of Mongolia
## Copyright
© 2019 - 2021 Makhgal Ganbold