Learn R Programming

jpndistrict (version 0.3.9)

find_jis_code: Find JIS city code

Description

Find JIS city code

Usage

find_jis_code(pref_code, admin_name, strict = TRUE)

Arguments

pref_code

jis code from 1 to 47

admin_name

prefecture names (string)

strict

matching patterns

Value

Identification code for cities, towns and villages (JIS X 0402:2010)

Examples

Run this code
# NOT RUN {
find_jis_code(33, intToUtf8(c(20489, 25975, 24066), multiple = FALSE))
find_jis_code(33, enc2native(intToUtf8(c(20489, 25975, 24066),
                                       multiple = FALSE)),
                                       strict = FALSE)
find_jis_code(14,
c(enc2native(intToUtf8(c(37772, 20489, 24066), multiple = FALSE)),
  enc2native(intToUtf8(c(23567, 30000, 21407, 24066), multiple = FALSE))), strict = FALSE) # nolint
# }

Run the code above in your browser using DataLab