R Interface for China National Data

R interface for china national data < http://data.stats.gov.cn/>, some convenient functions for accessing the national data are provided.

rstatscn是一个R包,它提供了一些访问中国国家数据的一些方便的接口。可以比较方便的获取想要的国家数据。 安装方法



详见 http://www.bagualu.net/wordpress/rstatscn-the-r-interface-for-china-national-data


rstatscn 1.1.3

minor update

  • import the functions from httr and jsonlite

rstatscn 1.1.2

minor update

  • do not run the tests requiring the internet resources

rstatscn 1.1.1

bug fixes

  • for some pages, the row name is duplicated. need to set the row name prefix to fix the issue. to set the row name prefix , use the function statscnRowNamePrefix() , to unset it call statscnRowNamePrefix(NULL)

rstatscn 1.0.2

bug fixes

  • It requires the httr 1.1.0 to run. Increase the httr version in DESCRIPTION

rstatscn 1.0.1

bug fixes

  • the http status check. success -> Success, which should be changed recently

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.1.3 by Xuehui YANG, 2 years ago


Report a bug at http://www.bagualu.net/wordpress/rstatscn-the-r-interface-for-china-national-data

Browse source code at https://github.com/cran/rstatscn

Authors: Xuehui YANG

Documentation:   PDF Manual  

Apache License 2.0 license

Imports httr, jsonlite

See at CRAN