Get information about the statistical dataset files and databases via e-Stat API.
estat_getDataCatalog(
appId,
lang = c("J", "E"),
.use_label = TRUE,
surveyYears = NULL,
openYears = NULL,
statsField = NULL,
statsCode = NULL,
searchWord = NULL,
dataType = NULL,
catalogId = NULL,
resourceId = NULL,
startPosition = NULL,
limit = NULL,
updatedDate = NULL,
...
)
Application ID.
Language of the data. "J"
(Japanese) or "E"
(English).
Whether to take the human-redable label value or the code value when
flattening a field containing both (default: TRUE
).
Year and month when the survey was conducted. The format is either
"YYYY"
, "YYYYMM"
, or "YYYYMM-YYYYMM"
.
Year and month when the survey result was opened. The format is the
same as surveyYears
.
Field of statistics. The format is either two digits(large classification) or four digits (small classification). For the detail of the classification, see http://www.soumu.go.jp/toukei_toukatsu/index/seido/sangyo/26index.htm.
Code assigned for each statistical agency and statistics. The format can be five digits (agency), and eight digits (statistics). For the detail, see http://www.stat.go.jp/info/guide/public/code/code.htm.
Keyword for searching. You can use OR
and AND
to combine conditions
(e.g.: "apple AND orange"
).
Type of data. XLS
: Excel file, CSV
: CSV file, PDF
: PDF file, DB
: Database.
Catalog ID.
Catalog resource ID.
Index of the first record to get.
Max number of records to get.
Last updated date. The format is either "YYYY"
, "YYYYMM"
, or
"YYYYMM-YYYYMM"
.
Other parameters.
http://www.e-stat.go.jp/api/e-stat-manual3-0/#api_2_6 http://www.e-stat.go.jp/api/e-stat-manual3-0/#api_3_7
# NOT RUN {
estat_getDataCatalog(
appId = "XXXX",
searchWord = "CD",
dataType = "XLS",
limit = 3
)
# }
Run the code above in your browser using DataLab