find_jis_code: Find JIS city code

Description Usage Arguments Value Examples

View source: R/city_name_table.R

Description

Find JIS city code

Usage

1
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

1
2
3
4
5
6
7
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

uribo/jpndistrict documentation built on Feb. 14, 2021, 9:48 a.m.