[Stable]

is_prefecture(x)

Arguments

x

Input vector.

Value

logical

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

is_prefecture("\u6771\u4eac\u90fd")
#> [1] TRUE
is_prefecture(c("\u6771\u4eac", "\u4eac\u90fd", "\u3064\u304f\u3070"))
#> [1]  TRUE  TRUE FALSE