regioncode v0.1.0


Monthly downloads



Convert Region Names and Division Codes of China Over Years

A fast tool to conquer the difficulties to convert various region names and administration division codes of Chinese regions. The current version enables seamlessly converting Chinese regions' formal names, common-used names, and codes between each other at the city level from 1986 to 2019.


CRAN version


Inspired by Vincent Arel-Bundock's well-known countrycode, regioncode is an indigenous version for China studies.

The Chinese government gives unique geocodes for each county, city (prefecture), and provincial-level administrative unit. The so-called "administrative division codes" were consistently adjusted to matched national and regional plans of development. Geocode adjustments disturb researchers when they merge data with different versions of geocodes or region names. Especially, when researchers render statistical data on Chinese map, different geocodes between map data and statistical data may cause mess-up data output or visualization.

The package is developed to conquer such difficulties to match regional data across years more conveniently and correctly. In the current version, regioncode enables seamlessly converting formal names, common-used names, and division codes of Chinese prefecture regions(named '地级市' in Chinese) between each other and across thirty-four years from 1986 to 2019.

To install:

  • the latest released version: install.packages("regioncode").
  • the latest developing version: remotes::install_github("sammo3182/regioncode").

More details are available at:

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Functions in regioncode

Name Description
regioncode regioncode
No Results!

Vignettes of regioncode

No Results!

Last month downloads


License MIT + file LICENSE
Encoding UTF-8
LazyData true
RoxygenNote 7.1.1
Config/testthat/edition 3
VignetteBuilder knitr
NeedsCompilation no
Packaged 2021-02-23 06:36:21 UTC; sunyufei
Repository CRAN
Date/Publication 2021-02-23 09:50:02 UTC

Include our badge in your README