harmonize_prefecture_name {zipangu} | R Documentation |
Harmonize the notation of Japanese prefecture names.
Description
Usage
harmonize_prefecture_name(x, to)
Arguments
x |
Input vector. |
to |
Option. Whether to use longer ("long") or shorter ("short") prefectures. |
Details
Convert with and without terminal notation, respectively.
long option, long formal name
Use the short option to omit the trailing characters
Examples
x <- c("\u6771\u4eac\u90fd", "\u5317\u6d77\u9053", "\u6c96\u7e04\u770c")
harmonize_prefecture_name(x, to = "short")
x <- c("\u6771\u4eac", "\u5317\u6d77\u9053", "\u6c96\u7e04")
harmonize_prefecture_name(x, to = "long")
[Package zipangu version 0.3.2 Index]