harmonize_prefecture_name: Harmonize the notation of Japanese prefecture names.

View source: R/prefecture.R

harmonize_prefecture_nameR Documentation

Harmonize the notation of Japanese prefecture names.

Description

\Sexpr[results=rd, stage=render]{lifecycle::badge("experimental")}

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")

zipangu documentation built on Dec. 9, 2022, 9:07 a.m.