ed_nbs_subregion | R Documentation |
ed_nbs_subregion
query province or city code from NBS
ed_nbs_subregion(geo_type = NULL, eng = FALSE)
geo_type |
geography type in NBS, including 'province', 'city'. Default is NULL. |
eng |
logical. The language of the query results is in English or in Chinese. Default is FALSE. |
## Not run:
# province code
prov1 = ed_nbs_subregion(geo_type = 'province')
# or using 'p' represents 'province'
prov2 = ed_nbs_subregion(geo_type = 'p')
# city code in Chinese
# city = ed_nbs_subregion(geo_type = 'c', eng = FALSE)
# city code in English
city = ed_nbs_subregion(geo_type = 'c', eng = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.