View source: R/sf_get_classifications.R
sf_get_reg_keytable | R Documentation |
Get regional classification table for municipalities from Statistics Finland. Table includes all municipality based regional classifications in Finland. Classifications include Finnish, Swedish and English versions. The table is from
sf_get_reg_keytable(
classes = NULL,
url =
"http://www.tilastokeskus.fi/static/media/uploads/meta/luokitukset/kooste_2016_kaikki_kielet.xlsx",
as_factors = default.stringsAsFactors()
)
classes |
a name or vector of names of the regional classification.
NULL (default) return all classifications. Names can be names in
orginal table or valid names given by |
url |
a url of the table. |
as_factors |
a logical. Should columns be converted to factors. The
default is from |
a tibble with columns Knro (classification number of a municipality),
Kunta (a name of a municipality) and colums for a code and a name of
the classes
classification.
key_table <- sf_get_reg_keytable()
key_table_mk <- sf_get_reg_keytable("Maakunta")
key_table_mk_sk <- sf_get_reg_keytable(c("Maakunta", "Seutukunta"))
key_table_mk_sk <- sf_get_reg_keytable(c("Maakunta", "Region"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.