Learn R Programming

zipangu (version 0.3.2)

is_prefecture: Check correctly prefecture names

Description

lifecycle::badge("stable")

Usage

is_prefecture(x)

Value

logical

Arguments

x

Input vector.

Details

Check if the string is a prefectural string. If it contains the name of the prefecture and other strings (e.g. city name), it returns FALSE.

Examples

Run this code
is_prefecture("\u6771\u4eac\u90fd")
is_prefecture(c("\u6771\u4eac", "\u4eac\u90fd", "\u3064\u304f\u3070"))

Run the code above in your browser using DataLab