Search the e-Stat data catalog for datasets and files
Source:R/data_catalog.R
estat_data_catalog.RdWraps the e-Stat getDataCatalog endpoint, which returns catalog entries —
datasets and their downloadable resources (Excel/CSV/PDF URLs) — rather than
machine-readable data values. Use estat_stats_data() / get_estat() for the
actual numbers.
Usage
estat_data_catalog(
searchWord = NULL,
...,
lang = getOption("estatr.lang", "E"),
key = get_estat_key()
)Arguments
- searchWord
Keyword(s) to search. Japanese is supported.
- ...
Further query parameters passed to
getDataCatalogverbatim (e.g.statsCode,dataType,limit,startPosition).- lang
Label language:
"E"for English (the package default, settable withoptions(estatr.lang = )) or"J"for Japanese. Tables that have no English release fall back to Japanese automatically, with a warning.- key
e-Stat appId. Defaults to the stored key.
Value
A tibble of catalog entries, one row per entry. Returns a zero-row tibble when nothing matches.