Title: | Datasets Related to 'JIS X 0402:2020' |
---|---|
Description: | Provides datasets for handling Japanese municipality code defined in 'JIS X 0402' and 'JIS X 0401'. |
Authors: | Akiru Kato [aut, cre] |
Maintainer: | Akiru Kato <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.1 |
Built: | 2024-08-13 05:49:11 UTC |
Source: | https://github.com/paithiov909/jisx0402 |
Calc check digits of municipality codes
check_digit(code)
check_digit(code)
code |
A character vector; municipality codes. |
A character vector.
Modified from the 'latest.csv' file in japanese-addresses. The original dataset is licensed under CC BY 4.0.
jpaddresses
jpaddresses
An object of class tbl_df
(inherits from tbl
, data.frame
) with 277656 rows and 6 columns.
https://github.com/geolonia/japanese-addresses/raw/develop/data/latest.csv
Prefecture codes of Japan
jpprefs
jpprefs
An object of class tbl_df
(inherits from tbl
, data.frame
) with 47 rows and 2 columns.
Reads 'FlatGeobuf' file and returns topographic data as an sf
object.
jptopography( type = c("all", "designated", "prefecture"), resolution = c("low", "high") )
jptopography( type = c("all", "designated", "prefecture"), resolution = c("low", "high") )
type |
String; One of |
resolution |
String; One of |
This package contains several 'FlatGeobuf' files converted from the 'GeoJSON' files of smartnews-smri/japan-topography. The original 'GeoJSON' files are sourced from MLIT of Japan site. Therefore, to use these dataset, you must agree to their term of use.
An sf
object from the 'sf' package.
A list of Japanese municipalities and their codes,
as known as the 'Zenkoku Chiho-kokyo-dantai Code'.
You can use a concatnated string like: paste0(pref_code, city_code)
as an actual municipality code.
municipality
municipality
An object of class tbl_df
(inherits from tbl
, data.frame
) with 4542 rows and 6 columns.
The 'Zenkoku Chiho-kokyo-dantai Code' is a combination of a prefecture code defined in 'JIS X 0401' and a municipality code (city, ward, town or village code) defined in 'JIS X 0402'.
These codes consists of 5 to 6 digits. The 6th digit is optional; that is a check digit. Of the remaining numbers, the first 2 digits are the prefecture code and the last 3 digits are the municipality code.
'000' as a municipality code means prefecture itself. For example, '010006' is a hybrid of '01' ('pref_code' of Hokkaido), '000', and its check digit '6'.
https://www.soumu.go.jp/denshijiti/code.html