Convert prefecture names to roman or kanji
convert_prefecture(x, to)
Arguments
- x
prefecture name in kanji
- to
conversion destination
Examples
convert_prefecture(c("tokyo-to", "osaka", "ALL"), to="kanji")
#> [1] "東京都" "大阪" "全国"
convert_prefecture(
c("\u6771\u4eac", "\u5927\u962a\u5e9c",
"\u5317\u6d77\u9053", "\u5168\u56fd"),
to = "roman")
#> [1] "Tokyo" "Osaka-fu" "Hokkaido" "All"