jaddress_jiscode: Search for JIS codes by Address

Description Usage Arguments Details Value Examples

View source: R/jaddress_jiscode.R

Description

This function allows you to get the organization code by entering an address that includes the name of the prefecture and city. The address must be in Japanese, and the name of the prefecture, city, town, or village must be in kanji. The name of the prefecture must be complete, such as "Akita-ken", and the name of the municipality must end with a string, such as "Akita-shi".

Usage

1
jaddress_jiscode(x, jis = c("city", "pref"), check.digit = FALSE)

Arguments

x

a vector. address strings.

jis

Selecting "city" will output the group code up to the city, and selecting "pref" will output the group code up to the prefecture.

check.digit

a logical value. If set to TRUE, the 6th digit check digit will be displayed.

Details

The data for the JIS code from the data published by the Ministry of Internal Affairs and Communications. Source: Ministry of Internal Affairs and Communications website, National Local Government Code (https://www.soumu.go.jp/denshijiti/code.html) "Prefectural Code and Municipal Code" (updated on May 1, 2019). The copyright of the data published by the Ministry of Internal Affairs and Communications (MIC) on its website belongs to the Ministry of Internal Affairs and Communications (MIC), but processing and redistribution are permitted within a certain range. For details, please refer to the web page of the Ministry of Internal Affairs and Communications.

Value

a charactor.

Examples

1
2
3
4
jaddress_jiscode("\u5317\u6d77\u9053\u6a3a\u6238\u90e1\u6708\u5f62\u753a1219\u756a\u5730")
jaddress_jiscode("\u57fc\u7389\u770c")
jaddress_jiscode("\u57fc\u7389\u770c", jis = "pref")
jaddress_jiscode("\u6c96\u7e04\u770c\u90a3\u8987\u5e02", check.digit = TRUE)

indenkun/jaddress.jiscode documentation built on Dec. 20, 2021, 7:01 p.m.