Skip to contents

Get data

High-level, analysis-ready access with decoded labels.

get_estat()
Get tidy, labelled data from e-Stat
pivot_estat_wide()
Pivot tidy e-Stat output to wide form

Geometry / mapping

Official e-Stat boundary polygons for choropleth maps (needs sf).

estat_boundaries()
Download e-Stat administrative boundaries as an sf object
estat_join_geometry()
Attach boundary geometry to e-Stat data

Discovery

Find the table you need.

search_estat()
Search the e-Stat catalog (interactive-friendly)
estat_curated_tables()
List the curated e-Stat shortcut tables
get_estat_curated()
Get a curated e-Stat table by name
get_labour_force_survey()
Get the Labour Force Survey (basic tabulation)
get_family_income_survey()
Get the Family Income and Expenditure Survey
get_population_census()
Get the Population Census (population by sex)
get_economic_census()
Get the Economic Census (establishments by industry)

Low-level endpoint wrappers

Thin wrappers over the e-Stat API endpoints, for power users.

estat_stats_list()
Search the e-Stat catalog for statistical tables
estat_meta_info()
Retrieve classification metadata for an e-Stat table
estat_stats_data()
Retrieve statistical data values from e-Stat
estat_data_catalog()
Search the e-Stat data catalog for datasets and files

Authentication

estat_api_key()
Set your e-Stat API key
estat_api_key_exists()
Is an e-Stat API key available?

Caching

estat_cache_dir()
Location of the estatr cache
estat_cache_clear()
Clear the estatr cache

Reference data

prefectures
Japanese prefectures with JIS codes and e-Stat area codes