Learn R Programming

rstatscn

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

install.packages('rstatscn')

它可以方便的获取各种国家统计数据。比如中国的每年人口数据,各省的GDP数据,各种教育数据等。

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

Copy Link

Version

Install

install.packages('rstatscn')

Monthly Downloads

187

Version

1.1.3

License

Apache License 2.0

Maintainer

Xuehui YANG

Last Published

April 25th, 2019

Functions in rstatscn (1.1.3)

statscnRegions

the regions in db
statscnQueryLastN

fetch the lastN data
statscnDbs

the available dbs
statscnQueryData

query data in the statscn db
statscnQueryZb

the data categories
genDfwds

private function for constructing the query parameter for dfwds
milSec

private function for sec
checkHttpStatus

private function for check the http status
dataJson2df

private function to convert the returned jason data to a dataframe
statscnRowNamePrefix

statscnRowNamePrefix