Learn R Programming

gfer (version 0.1.12)

statscnQueryLastN: fetch the lastN data

Description

fetch the lastN data for the latest query, only affect the number of rows in the returned data. This function can not be used alone , statscnQueryData() has to be called before this function

Usage

statscnQueryLastN(n)

Arguments

n

the number of rows to be fetched

Value

the last n rows data in the latest query

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

Run this code
# NOT RUN {
df=statscnQueryData('A0201',dbcode='hgnd')
df2=statscnQueryLastN(20)
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab