Get some statistical data via e-Stat API.
estat_getStatsData( appId, statsDataId, startPosition = NULL, limit = NULL, lang = c("J", "E"), .fetch_all = TRUE, ... )
appId | Application ID. |
---|---|
statsDataId | ID of the statistical dataset. |
startPosition | Index of the first record to get. |
limit | Max number of records to get. |
lang | Language of the data. |
.fetch_all | Whether to fetch all records when the number of records is larger than 100,000. |
... | Other parameters.
|
http://www.e-stat.go.jp/api/e-stat-manual3-0/#api_2_3 http://www.e-stat.go.jp/api/e-stat-manual3-0/#api_3_4
if (FALSE) { # fetch all data, which may take time estat_getStatsData( appId = "XXXX", statsDataId = "0003065345" ) # fetch data up to 10 records estat_getStatsData( appId = "XXXX", statsDataId = "0003065345", limit = 10 ) # fetch data up to 100,000 records (max number of records available at once) estat_getStatsData( appId = "XXXX", statsDataId = "0003065345", .fetch_all = FALSE ) # fetch all data in the specifed category estat_getStatsData( appId = "XXXX", statsDataId = "0003065345", cdCat01 = c("008", "009", "010") ) }