is_prefecture: Check correctly prefecture names

View source: R/prefecture.R

is_prefectureR Documentation

Check correctly prefecture names

Description

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

Usage

is_prefecture(x)

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.

Value

logical

Examples

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

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