Wraps the e-Stat getMetaInfo endpoint. Returns the classification metadata
needed to decode a table's numeric codes into labels: one tibble per
classification axis (tab, cat01, ..., area, time), keyed by the axis
id, each with code, name, level, unit, and parent columns.
Arguments
- statsDataId
The table id whose metadata to fetch.
- 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.
- cache
If
TRUE(default), read/write the parsed metadata from the on-disk cache (seeestat_cache_dir()); metadata rarely changes, so this avoids a network round-trip on repeat calls. SetFALSEto force a fetch.- cache_ttl
Maximum age, in seconds, of a cached entry before it is refetched. Defaults to
options(estatr.cache_ttl)or 30 days.
Value
A named list of tibbles, one per classification
axis, plus a table_info attribute with the table's overall description.