| Type: | Package | 
| Title: | Tools for Easy Use of 'e-Stat', 'RESAS' API, Etc | 
| Version: | 0.4.0 | 
| Description: | Provides tools to use API such as 'e-Stat' (https://www.e-stat.go.jp/), the portal site for Japanese government statistics, and 'RESAS' (Regional Economy and Society Analyzing System, https://resas.go.jp). | 
| License: | MIT + file LICENSE | 
| URL: | https://github.com/UchidaMizuki/jpstat, https://uchidamizuki.github.io/jpstat/ | 
| BugReports: | https://github.com/UchidaMizuki/jpstat/issues | 
| Encoding: | UTF-8 | 
| Suggests: | keyring (≥ 1.2.0), knitr, rmarkdown, testthat (≥ 3.0.0) | 
| Config/testthat/edition: | 3 | 
| RoxygenNote: | 7.2.3 | 
| Imports: | dplyr (≥ 0.8.0), httr, pillar, purrr (≥ 1.0.0), rlang (≥ 0.3.0), stringr (≥ 1.3.0), tibble (≥ 1.3.1), tidyr (≥ 1.0.0), vctrs, navigatr (≥ 0.2.0), lifecycle, stickyr | 
| Depends: | R (≥ 4.1.0) | 
| NeedsCompilation: | no | 
| Packaged: | 2023-07-15 14:48:18 UTC; UchidaMizuki | 
| Author: | Mizuki Uchida [aut, cre] | 
| Maintainer: | Mizuki Uchida <uchidamizuki@vivaldi.net> | 
| Repository: | CRAN | 
| Date/Publication: | 2023-07-15 21:20:05 UTC | 
Tools for easy use of 'e-Stat' API
Description
Provides tools to use API such as 'e-Stat' (https://www.e-stat.go.jp/), the portal site for Japanese government statistics, and 'RESAS' (Regional Economy and Society Analyzing System, https://resas.go.jp).
Author(s)
Maintainer: Mizuki Uchida uchidamizuki@vivaldi.net
See Also
Useful links:
Report bugs at https://github.com/UchidaMizuki/jpstat/issues
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(
  appId = deprecated(),
  statsDataId,
  lang = c("J", "E"),
  query = list(),
  path = "rest/3.0/app/json/"
)
Arguments
appId | 
 (Deprecated) an 'appId' of 'e-Stat' API.  | 
statsDataId | 
 A statistical data ID on 'e-Stat'.  | 
lang | 
 A language, Japanese (  | 
query | 
 A list of additional queries.  | 
path | 
 An e-Stat API path.  | 
Value
A estat object.
See Also
Examples
## Not run: 
estat("Your appId", "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   | 
Value
A tbl_df of the table information.
Objects exported from other packages
Description
These objects are imported from other packages. Follow the links below to see their documentation.
- navigatr
 
Access 'RESAS' data
Description
Usage
resas(
  X_API_KEY = deprecated(),
  path,
  query = list(),
  to_snakecase = TRUE,
  names_sep = "/",
  rectangle = TRUE
)
Arguments
X_API_KEY | 
 (Deprecated) an 'X-API-KEY' of 'RESAS' API.  | 
path | 
 A 'RESAS' API path.  | 
query | 
 Additional queries.  | 
to_snakecase | 
 Whether the parameters and responses should be named as snake cases or not?  | 
names_sep | 
 A character that separates the names of the responses.  | 
rectangle | 
 Whether to rectangle the data or not?  | 
Value
A resas object.
See Also
https://opendata.resas-portal.go.jp/
Information on real estate transaction prices API
Description
Usage
webland_trade(lang = c("ja", "en"))
webland_city(lang = c("ja", "en"))
Arguments
lang | 
 Language.  | 
Details
Collect data from the information on real estate transaction prices API provided by Japan's Ministry of Land, Infrastructure, Transport and Tourism.
Value
webland_trade() a webland_trade object. By creating a query with itemise() and
applying collect(), The real estate transaction prices are collected.
webland_city() a webland_city object. Obtains a list of target
municipalities in the same way as webland_trade().
Examples
## Not run: 
# Collect trade data
webland_trade() |>
  itemise(from = "20151",
          to = "20152",
          city_code = "13102") |>
  collect()
# Collect target municipalities
webland_city() |>
  itemise(pref_code = "13") |>
  collect()
## End(Not run)