Package 'jpstat'

Title: Tools for Easy Use of the 'e-Stat' API
Description: Provides tools to use the 'e-Stat' API (<https://www.e-stat.go.jp/>), the portal site for Japanese government statistics.
Authors: Mizuki Uchida [aut, cre]
Maintainer: Mizuki Uchida <[email protected]>
License: MIT + file LICENSE
Version: 0.5.0
Built: 2026-07-13 01:24:32 UTC
Source: https://github.com/uchidamizuki/jpstat

Help Index


Access 'e-Stat' data

Description

The estat() gets the meta-information of a statistical table by using getMetaInfo of the 'e-Stat' API, and returns an estat object that allows editing of meta-information by dplyr::filter() and dplyr::select().

Usage

estat(
  statsDataId,
  lang = c("J", "E"),
  query = list(),
  path = "rest/3.0/app/json"
)

Arguments

statsDataId

A statistical data ID on 'e-Stat'.

lang

A language, Japanese ("J") or English ("E").

query

A list of additional queries.

path

An e-Stat API path.

Value

A estat object.

See Also

https://www.e-stat.go.jp

https://www.e-stat.go.jp/en

Examples

## Not run: 
Sys.setenv(ESTAT_API_KEY = "Your API key")
estat("https://www.e-stat.go.jp/dbview?sid=0003433219")

## End(Not run)

Get table information for 'e-Stat' data

Description

Get table information for 'e-Stat' data

Usage

estat_table_info(x)

Arguments

x

A estat object.

Value

A tbl_df of the table information.


Tools for easy use of 'e-Stat' API

Description

logo

Provides tools to use the 'e-Stat' API (https://www.e-stat.go.jp/), the portal site for Japanese government statistics.

Author(s)

Maintainer: Mizuki Uchida [email protected]

Authors:

See Also

Useful links: