Learn R Programming

zipangu (version 0.3.2)

harmonize_prefecture_name: Harmonize the notation of Japanese prefecture names.

Description

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

Run this code
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")

Run the code above in your browser using DataLab