powered by
lifecycle::badge("stable")
is_prefecture(x)
logical
Input vector.
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.
FALSE
is_prefecture("\u6771\u4eac\u90fd") is_prefecture(c("\u6771\u4eac", "\u4eac\u90fd", "\u3064\u304f\u3070"))
Run the code above in your browser using DataLab