ed_nbs_subregion: subregion code of NBS economic data

Description Usage Arguments Examples

Description

ed_nbs_subregion query province or city code from NBS

Usage

1
ed_nbs_subregion(geo_type = NULL, eng = FALSE)

Arguments

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.

Examples

1
2
3
4
5
6
7
8
9
# 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) 

ShichenXie/getpedr documentation built on May 28, 2019, 8:26 a.m.