statscnQueryZb: the data categories

Description Usage Arguments Value References Examples

View source: R/getNBS.R

Description

the sub data categories for the zbid category, dbcode need to be specified, where the dbcode can be fetched by function statscnDbs(). In the returned data frame, the column 'isParent' shows if each sub category is leap category or not

Usage

1
statscnQueryZb(zbid = "zb", dbcode = "hgnd")

Arguments

zbid

the father zb/category id , the root id is 'zb'

dbcode

which db will be queried

Value

the data frame with the sub zbs/categories , if the given zbid is not a Parent zb/category, null list is returned

References

Xuehui YANG (2016). rstatscn: R Interface for China National Data. R package version 1.1.1. https://CRAN.R-project.org/package=rstatscn

Examples

1
2
3
4
5
## Not run: 
statscnQueryZb()
statscnQueryZb('A01',dbcode="hgnd")

## End(Not run)

Yuanchao-Xu/gfer documentation built on Feb. 7, 2022, 7:11 a.m.