View source: R/get_region_classifications.R
get_regionclassification | R Documentation |
Get region classifications / code-name keys
get_regionclassification(
...,
year = NULL,
only_names = FALSE,
only_codes = FALSE,
as_named_vector = FALSE,
lang = "fi",
offline = TRUE
)
... |
character(s), (vector), region(s) of required keys. |
year |
character/numeric, year of the required keys. As default returns a general classification containing also abolished municipalities. |
only_names |
logical, whether to return only the names in the classification.
Defaults to |
only_codes |
logical, whether to return only the codes in the classification.
Defaults to |
as_named_vector |
logical, whether returns the key as a named vector rather than a
data.frame. Defaults |
lang |
|
offline |
logical, whether uses the key in the package data. Defaults |
suppress_message |
logical, whether to suppress any messages the function might produce. |
a data.frame or a named vector. A region code-name key.
get_regionclassification("seutukunta")
get_regionclassification("seutukunta", as_named_vector = TRUE)
get_regionclassification("seutukunta", "maakunta")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.