Description Usage Arguments Details Value References See Also Examples
Brief information about all available database tables on the open-data API which is supported by National Statistical Office of Mongolia (NSO)
1 | all_tables(try = FALSE, timeout = Inf, na.rm = FALSE)
|
try |
logical: Should the body of the function be wrapped by the function |
timeout |
positive numeric or |
na.rm |
logical: If |
The NSO server returns "HTTP error 500" frequently. Due to the server error, error handling is supported. if try
is TRUE
, you have to write code with error handling as shown in the example.
A data frame which has brief information of all available database tables if the function is executed without error, but an object of class "try-error" containing the error message, if it fails. The data frame has following structure:
Row number
Sector number
Table identification number
Table name in Mongolian
Table name in English
Unit code
Unit name in Mongolian
Unit name in English
Start date
Finish date
Time frequency
Last update date
http://opendata.1212.mn/en/doc/Api/GET-api-Itms
get_table, get_table_info, get_sector_info
1 2 3 4 | all.tables <- all_tables(try = TRUE, timeout = 4)
if (!inherits(all.tables, "try-error")) {
str(all.tables)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.