Reform input jis code as 2 or 5 character length.

code_reform(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_reform function was added in version 0.3.2.9000

Examples

code_reform(c(1, "33", "08201"))
#> [1] "01" "33" "08201"