Administration code validation

code_validate(jis_code)

Arguments

jis_code

jis code for prefecture and city identifical number. If prefecture, must be from 1 to 47. If city, range of 5 digits.

Note

The code_validate function was added in version 0.3.2.9000

Examples

code_validate(jis_code = "05")
#> $administration_type #> [1] "prefecture" #> #> $code #> [1] "05" #>
code_validate(jis_code = 33101)
#> $administration_type #> [1] "city" #> #> $code #> [1] "33101" #>
code_validate(jis_code = c("01", "33101"))
#> $administration_type #> [1] "prefecture" "city" #> #> $code #> [1] "01" "33101" #>