is_prefecture {zipangu}R Documentation

Check correctly prefecture names

Description

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

[Package zipangu version 0.3.2 Index]