Package 'jpops'

Title: Provides a Data Set on the Population in Japan
Description: Information on the population and household registers, as published by the census and each local authority. The acquired data will be returned in a tidy format.
Authors: Shinya Uryu [aut, cre] (ORCID: <https://orcid.org/0000-0002-0493-6186>)
Maintainer: Shinya Uryu <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2026-10-13 13:37:58 UTC
Source: https://github.com/uribo/jpops

Help Index


Convert e-Stat's age labels

Description

Normalize age labels that differ between Population Census tables.

Usage

conv_age_vars(x)

Arguments

x

variable


Convert e-Stat's record value

Description

[Experimental]

Usage

conv_gender_vars(x, lang = "ja")

Arguments

x

variable

lang

Specify the language to convert


Obtain data for the Population Census

Description

[Experimental]

Usage

get_jinkou(year, appid = NULL, cache = TRUE, .area = "all")

get_jinkou_age(year, appid = NULL, cache = TRUE, .area = "all")

Arguments

year

year

appid

e-Stat application ID. Area filtering for "all" and "prefecture" never needs an application ID or area metadata. Fetching uncached population data from e-Stat still needs an application ID. In addition, "municipality", "ward", and the deprecated "city" alias need one on first use if no area metadata cache exists for the selected statistical table. Once that metadata cache exists, it can be reused with appid = NULL when the population data is also available locally. With cache = FALSE, these three values always need an application ID.

cache

Whether to read and write package caches.

.area

Area detail to return. The canonical values are "all", "prefecture", "municipality", and "ward".

"all" contains overlapping parent and child areas and must not be summed. "prefecture" returns the 47 prefectures. "municipality" returns ordinary cities, designated cities as single units, Tokyo's special-ward area as one unit, and towns and villages. It excludes the 23 individual Tokyo special wards, wards of designated cities, and historical municipalities based on year-2000 boundaries. It is therefore coarser than the everyday sense of municipalities in Tokyo. "ward" uses the same frontier but splits designated cities into wards and Tokyo's special-ward area into the 23 individual special wards.

"city" is deprecated for one release and is an alias for "municipality". Its meaning changed: it formerly returned overlapping parent and child areas, so results and totals will change.


Remove cache files

Description

Remove all processed and raw package cache files.

Usage

reset_cache()