View source: R/test_region_classifications.R
is_region_name | R Documentation |
By default, the tests whether input is a name in standard form. Non-standard
forms can be tested by setting allow_nonstandard_names = TRUE
.
is_region_name(
x,
region_level = NULL,
year = NULL,
offline = TRUE,
allow_nonstandard_names = FALSE,
case_sensitive = TRUE,
lang = "fi"
)
x |
character, a vector of potential region names. |
region_level |
character, optional region level of the input region codes.
Possible |
year |
double, year of region classification searched. |
offline |
logical, whether works offline with package data. Defaults to |
allow_nonstandard_names |
logical, whether to accept a broader set of names as region names. |
case_sensitive |
logical, whether recognition is case sensitive, defaults
to |
lang |
|
Region variable detection functions use the testing functions here.
logical
is_region_name(c("Kainuu", "Kainuun maakunta", "Kajjjaani"))
is_region_name(c("Kainuu", "Kainuun maakunta", "Kajjjaani"), allow_nonstandard_names = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.