diff --git a/articles/geofi_making_maps.html b/articles/geofi_making_maps.html index b7380a4..faaa87e 100644 --- a/articles/geofi_making_maps.html +++ b/articles/geofi_making_maps.html @@ -269,16 +269,16 @@

Facetting and combining maps#> # A tibble: 618 × 3 #> municipality_code population time #> <int> <dbl> <dbl> -#> 1 5 2000. 2020 -#> 2 9 1866. 2020 -#> 3 10 2510. 2020 -#> 4 16 2238. 2020 -#> 5 18 1910. 2020 -#> 6 19 2158. 2020 -#> 7 20 2085. 2020 -#> 8 35 2052. 2020 -#> 9 43 1976. 2020 -#> 10 46 1999. 2020 +#> 1 5 2033. 2020 +#> 2 9 1964. 2020 +#> 3 10 1834. 2020 +#> 4 16 2084. 2020 +#> 5 18 1295. 2020 +#> 6 19 2018. 2020 +#> 7 20 1555. 2020 +#> 8 35 1880. 2020 +#> 9 43 2016. 2020 +#> 10 46 1404. 2020 #> # ℹ 608 more rows
 pop_map <- right_join(polygon, pop_data)
@@ -421,8 +421,8 @@ 

Interactive maps message("One or more of the following packages is not available: ", paste(libs, collapse = ", ")) }

-
- +
+ diff --git a/articles/geofi_making_maps_files/figure-html/facet-1.png b/articles/geofi_making_maps_files/figure-html/facet-1.png index f6c8fc0..83bffd9 100644 Binary files a/articles/geofi_making_maps_files/figure-html/facet-1.png and b/articles/geofi_making_maps_files/figure-html/facet-1.png differ diff --git a/articles/geofi_making_maps_files/figure-html/uusimaa_repel-1.png b/articles/geofi_making_maps_files/figure-html/uusimaa_repel-1.png index b4d7231..9190369 100644 Binary files a/articles/geofi_making_maps_files/figure-html/uusimaa_repel-1.png and b/articles/geofi_making_maps_files/figure-html/uusimaa_repel-1.png differ diff --git a/news/index.html b/news/index.html index 80e554e..d45d255 100644 --- a/news/index.html +++ b/news/index.html @@ -62,7 +62,8 @@

geofi 1.0.10

-

geofi 1.0.9

CRAN release: 2023-04-16

diff --git a/pkgdown.yml b/pkgdown.yml index 05303fe..1bfc3fb 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -7,7 +7,7 @@ articles: geofi_joining_attribute_data: geofi_joining_attribute_data.html geofi_making_maps: geofi_making_maps.html geofi_spatial_analysis: geofi_spatial_analysis.html -last_built: 2023-10-31T09:10Z +last_built: 2023-10-31T11:52Z urls: reference: https://ropengov.github.io/geofi/reference article: https://ropengov.github.io/geofi/articles diff --git a/reference/wfs_api.html b/reference/wfs_api.html index d3d9007..b640a9d 100644 --- a/reference/wfs_api.html +++ b/reference/wfs_api.html @@ -123,7 +123,7 @@

Examples#> #> $response #> Response [http://geo.stat.fi/geoserver/wfs?service=WFS&version=1.0.0&request=getFeature&layer=tilastointialueet%3Akunta4500k_2017] -#> Date: 2023-10-31 09:10 +#> Date: 2023-10-31 11:52 #> Status: 200 #> Content-Type: text/xml;charset=UTF-8 #> Size: 450 B diff --git a/search.json b/search.json index 9b4bd44..cb1658b 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"https://ropengov.github.io/geofi/articles/Publications-using-the-geofi-R-package.html","id":"articles-citing-the-geofi-package","dir":"Articles","previous_headings":"","what":"Articles citing the geofi package","title":"Publications using the geofi R package","text":"Räsänen, T., Miettinen, ., Mustonen, J., Saarikallio-Torp, M. & Österbacka, E. (2023). Lasten yksityisen hoidon tuen kaksi vuosikymmenta, Työpapereita 174. Helsinki: Kela. http://urn.fi/URN:NBN:fi-fe2022121672077 Kokko, M., Wikman, E., Hyvärinen, . & Reinikainen, L. (2022). Apteekkien tilinpäätösanalyysi vuosilta 2017–2020, Lääkealan turvallisuus- ja kehittämiskeskus Fimea: Fimea kehittää, arvioi ja informoi, 10/2022. Kuopio: Lääkealan turvallisuus- ja kehittämiskeskus Fimea. https://urn.fi/URN:ISBN:978-952-7299-40-1 Reinikainen, L., Hyvärinen, ., Kokko, M., Jauhonen, H. M. & Happonen, P. (2021). Apteekkien tilinpäätösanalyysi vuosilta 2016–2019, Fimea kehittää, arvioi ja informoi, 7/2021. Kuopio: Lääkealan turvallisuus- ja kehittämiskeskus Fimea. https://urn.fi/URN:ISBN:978-952-7299-22-7 Vuori, M. (2020). ADHD-lääkkeiden käytön yleisyys pojilla ja tytöillä sairaanhoitopiireissä ja kunnissa vuonna 2018 (Prevalence ADHD medication use among boys girls hospital districts municipalities, 2018), Lääkärilehti, 75(22). Helsinki: Suomen lääkäriliitto. URL: https://www.laakarilehti.fi/tieteessa/alkuperaistutkimukset/adhd-laakkeiden-kayton-yleisyys-pojilla-ja-tytoilla-sairaanhoitopiireissa-ja-kunnissa-vuonna-2018/","code":""},{"path":"https://ropengov.github.io/geofi/articles/Publications-using-the-geofi-R-package.html","id":"other-writings-using-the-geofi-package","dir":"Articles","previous_headings":"","what":"Other writings using the geofi package","title":"Publications using the geofi R package","text":"Oksanen, J. (2021). Semparl – Cities parliament, Helsinki Digital Humanities Hackathon. URL: https://dhhackathon.wordpress.com/2021/05/28/semparl-cities--parliament/","code":""},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"municipality-keys","dir":"Articles","previous_headings":"","what":"Municipality keys","title":"Datasets in geofi-package","text":"Official administrative regions Finland based municipalities. 2021 309 municipalities Finland number decreasing time mergers. municipality belongs higher level regional classifications regions (maakunta) health care districts (sairaanhoitopiiri). municipality_key_-datasets based Statistics Finland Statistical classification -api modification provided yearly basis. Looking names `municipality_key_2023` 69 different variables municipality. municipality keys can easily aggregate municipalities plotting can list different regional breakdowns. Municipality keys joined municipality spatial data default, meaning data returned get_municipality() can aggregated .","code":"library(geofi) library(dplyr) d <- data(package = \"geofi\") as_tibble(d$results) %>% select(Item,Title) %>% filter(grepl(\"municipality_key\", Item)) #> # A tibble: 12 × 2 #> Item Title #> #> 1 municipality_key Aggregated municipality key table for years 2013-2023 #> 2 municipality_key_2013 Municipality key table for 2013 #> 3 municipality_key_2014 Municipality key table for 2014 #> 4 municipality_key_2015 Municipality key table for 2015 #> 5 municipality_key_2016 Municipality key table for 2016 #> 6 municipality_key_2017 Municipality key table for 2017 #> 7 municipality_key_2018 Municipality key table for 2018 #> 8 municipality_key_2019 Municipality key table for 2019 #> 9 municipality_key_2020 Municipality key table for 2020 #> 10 municipality_key_2021 Municipality key table for 2021 #> 11 municipality_key_2022 Municipality key table for 2022 #> 12 municipality_key_2023 Municipality key table for 2023 names(geofi::municipality_key_2023) #> [1] \"kunta\" \"municipality_name_fi\" #> [3] \"municipality_name_sv\" \"municipality_name_en\" #> [5] \"avi_code\" \"avi_name_fi\" #> [7] \"avi_name_sv\" \"avi_name_en\" #> [9] \"ely_code\" \"ely_name_fi\" #> [11] \"ely_name_sv\" \"ely_name_en\" #> [13] \"kielisuhde_code\" \"kielisuhde_name_fi\" #> [15] \"kielisuhde_name_sv\" \"kielisuhde_name_en\" #> [17] \"kuntaryhmitys_code\" \"kuntaryhmitys_name_fi\" #> [19] \"kuntaryhmitys_name_sv\" \"kuntaryhmitys_name_en\" #> [21] \"maakunta_code\" \"maakunta_name_fi\" #> [23] \"maakunta_name_sv\" \"maakunta_name_en\" #> [25] \"seutukunta_code\" \"seutukunta_name_fi\" #> [27] \"seutukunta_name_sv\" \"seutukunta_name_en\" #> [29] \"year\" \"suuralue_code\" #> [31] \"suuralue_name_fi\" \"suuralue_name_sv\" #> [33] \"suuralue_name_en\" \"nuts1_code\" #> [35] \"nuts1_name_fi\" \"nuts1_name_sv\" #> [37] \"nuts1_name_en\" \"nuts2_code\" #> [39] \"nuts2_name_fi\" \"nuts2_name_sv\" #> [41] \"nuts2_name_en\" \"nuts3_code\" #> [43] \"nuts3_name_fi\" \"nuts3_name_sv\" #> [45] \"nuts3_name_en\" \"tyossakayntial_code\" #> [47] \"tyossakayntial_name_fi\" \"vaalipiiri_code\" #> [49] \"vaalipiiri_name_fi\" \"vaalipiiri_name_sv\" #> [51] \"vaalipiiri_name_en\" \"hyvinvointialue_code\" #> [53] \"hyvinvointialue_name_fi\" \"hyvinvointialue_name_sv\" #> [55] \"hyvinvointialue_name_en\" \"tyossakayntial_name_sv\" #> [57] \"tyossakayntial_name_en\" \"municipality_code\" #> [59] \"kunta_name\" \"name_fi\" #> [61] \"name_sv\" \"kela_vakuutuspiiri_name_fi\" #> [63] \"kela_vakuutuspiiri_code\" \"kela_vakuutuspiiri_name_sv\" #> [65] \"kela_vakuutuspiiri_name_en\" \"kela_asumistukialue_name_fi\" #> [67] \"kela_asumistukialue_code\" \"kela_asumistukialue_name_sv\" #> [69] \"kela_asumistukialue_name_en\" geofi::municipality_key_2023 %>% count(maakunta_code,maakunta_name_fi,maakunta_name_sv,maakunta_name_en) #> # A tibble: 19 × 5 #> maakunta_code maakunta_name_fi maakunta_name_sv maakunta_name_en n #> #> 1 1 Uusimaa Nyland Uusimaa 26 #> 2 2 Varsinais-Suomi Egentliga Finland Southwest Finland 27 #> 3 4 Satakunta Satakunta Satakunta 16 #> 4 5 Kanta-Häme Egentliga Tavastland Kanta-Häme 11 #> 5 6 Pirkanmaa Birkaland Pirkanmaa 23 #> 6 7 Päijät-Häme Päijänne-Tavastland Päijät-Häme 10 #> 7 8 Kymenlaakso Kymmenedalen Kymenlaakso 6 #> 8 9 Etelä-Karjala Södra Karelen South Karelia 9 #> 9 10 Etelä-Savo Södra Savolax South Savo 12 #> 10 11 Pohjois-Savo Norra Savolax North Savo 19 #> 11 12 Pohjois-Karjala Norra Karelen North Karelia 13 #> 12 13 Keski-Suomi Mellersta Finland Central Finland 22 #> 13 14 Etelä-Pohjanmaa Södra Österbotten South Ostrobothn… 18 #> 14 15 Pohjanmaa Österbotten Ostrobothnia 14 #> 15 16 Keski-Pohjanmaa Mellersta Österbotten Central Ostrobot… 8 #> 16 17 Pohjois-Pohjanmaa Norra Österbotten North Ostrobothn… 30 #> 17 18 Kainuu Kajanaland Kainuu 8 #> 18 19 Lappi Lappland Lapland 21 #> 19 21 Ahvenanmaa Åland Åland 16"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"spatial-data","dir":"Articles","previous_headings":"","what":"Spatial data","title":"Datasets in geofi-package","text":"Spatial data provided administrative regions (polygons), population statistical grids (polygons) municipality centers (points).","code":""},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"municipality-borders","dir":"Articles","previous_headings":"Spatial data","what":"Municipality borders","title":"Datasets in geofi-package","text":"Municipality borders provided yearly 2013 two scales 1: 1 000 000 1:4 500 000. Use 1000 4500 value scale-argument, respectively.","code":"municipalities <- get_municipalities(year = 2023, scale = 4500) plot(municipalities[\"municipality_name_fi\"], border = NA)"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"municipality-borders-with-population","dir":"Articles","previous_headings":"Spatial data","what":"Municipality borders with population","title":"Datasets in geofi-package","text":"2022 new data source introduced provides municipality borders municipality population data. Spatial data provided 1:4 500 000 scale. Calling function year = 2019 returns population data 2019-12-31 spatial data borders 2020. statistical variables data : total population (vaesto), share total population (vaesto_p), number men (miehet), men’s share population area (miehet_p) women (naiset), women’s share (naiset_p), aged 15: number (ika_0_14), share (ika_0_14p), aged 15 64: number (ika_15_64), share (ika_15_64p), aged 65 : number (ika_65_), share (ika_65_p). plot men’s share municipality level 2020 (2021 municipality borders) can simply . Aggregating absolute population numbers straightforward: plot population Wellbeing service county level can . plot men’s share wellbeing service country level add one step","code":"get_municipality_pop(year = 2022) %>% subset(select = miehet_p) %>% plot() get_municipality_pop(year = 2022) %>% group_by(hyvinvointialue_name_fi) %>% summarise(vaesto = sum(vaesto)) %>% select(vaesto) %>% plot() get_municipality_pop(year = 2022) %>% dplyr::group_by(hyvinvointialue_name_fi) %>% summarise(vaesto = sum(vaesto), miehet = sum(miehet)) %>% mutate(share = miehet/vaesto*100) %>% select(share) %>% plot()"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"zipcodes","dir":"Articles","previous_headings":"Spatial data","what":"Zipcodes","title":"Datasets in geofi-package","text":"Zipcodes provided single resolution 2015.","code":"zipcodes <- get_zipcodes(year = 2023) plot(zipcodes[\"nimi\"], border = NA)"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"statistical-grid","dir":"Articles","previous_headings":"Spatial data","what":"Statistical grid","title":"Datasets in geofi-package","text":"Grid net statistics 1 km x 1 km 5 km x 5km covers whole Finland. grid net includes grid squares Finland. Statistics Finland proprietary grid database provides attribute statistical data grid nets.","code":"stat_grid <- get_statistical_grid(resolution = 5, auxiliary_data = TRUE) plot(stat_grid[\"euref_x\"], border = NA)"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"population-grid","dir":"Articles","previous_headings":"Spatial data","what":"Population grid","title":"Datasets in geofi-package","text":"Number population 1 km x 1 km 5 km x 5 km grids. number population last day reference year (31 December) age group. Data includes inhabited grids. statistical variables data : Total population (vaesto), number men (miehet) women (naiset), 15 year olds (ika_0_14), 15-64 year olds (ika_15_64), aged 65 (ika_65_). number population reported grids 10 inhabitants. See Population grid data. data describes population distribution independent administrative areas (municipal borders). data suitable examination population distribution making various spatial analysis.","code":"pop_grid <- get_population_grid(year = 2018, resolution = 5) plot(pop_grid[\"kunta\"], border = NA)"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"central-localities-of-municipalities","dir":"Articles","previous_headings":"Spatial data","what":"Central localities of municipalities","title":"Datasets in geofi-package","text":"National Land Survey Finland maintains Topological Database contains wide range layers can access locations central localities municipality Finland.","code":"plot(municipality_central_localities[\"teksti\"])"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"custom-geofacet-grid-data","dir":"Articles","previous_headings":"","what":"Custom geofacet grid data","title":"Datasets in geofi-package","text":"Ryan Hafen’s blog: geofacet package extends ggplot2 way makes easy create geographically faceted visualizations R. geofacet take data representing different geographic entities apply visualization method data entity, resulting set visualizations laid grid mimics original geographic topology closely possible. geofi-package contains custom grids used various Finnish administrative breakdowns listed . example population data municipality level pulled THL 2000 2022, aggregated levels regions (maakunta) plotted ggplot2 using grid geofi::grid_maakunta.","code":"d <- data(package = \"geofi\") as_tibble(d$results) %>% select(Item,Title) %>% filter(grepl(\"grid\", Item)) %>% print(n = 100) #> # A tibble: 22 × 2 #> Item Title #> #> 1 grid_ahvenanmaa custom geofacet grid for Ahvenanmaa region #> 2 grid_etela_karjala custom geofacet grid for Etelä-Karjala region as in 2… #> 3 grid_etela_pohjanmaa custom geofacet grid for Etelä-Pohjanmaa #> 4 grid_etela_savo custom geofacet grid for Etelä-Savo #> 5 grid_hyvinvointialue custom geofacet grid for Wellbeing services counties #> 6 grid_kainuu custom geofacet grid for Kainuu region #> 7 grid_kanta_hame custom geofacet grid for Kanta-Häme region #> 8 grid_keski_pohjanmaa custom geofacet grid for Keski-Pohjanmaa region #> 9 grid_keski_suomi custom geofacet grid for Keski-Suomi region as in 2020 #> 10 grid_kymenlaakso custom geofacet grid for Kymenlaakso region #> 11 grid_lappi custom geofacet grid for Lappi region as in 2020 #> 12 grid_maakunta custom geofacet grid for regions #> 13 grid_paijat_hame custom geofacet grid for Päijät-Häme region #> 14 grid_pirkanmaa custom geofacet grid for Pirkanmaa region #> 15 grid_pohjanmaa custom geofacet grid for Pohjanmaa region #> 16 grid_pohjois_karjala custom geofacet grid for Pohjois-Karjala region #> 17 grid_pohjois_pohjanmaa custom geofacet grid for Pohjois-Pohjanmaa region #> 18 grid_pohjois_savo custom geofacet grid for Pohjois-Savo region #> 19 grid_sairaanhoitop custom geofacet grid for health care districts #> 20 grid_satakunta custom geofacet grid for Satakunta region #> 21 grid_uusimaa custom geofacet grid for Uusimaa region #> 22 grid_varsinais_suomi custom geofacet grid for Varsinais-Suomi region libs <- c(\"sotkanet\",\"geofacet\",\"ggplot2\") if (check_namespaces(pkgs = libs)) { # Let pull population data from THL library(sotkanet) sotkadata <- GetDataSotkanet(indicators = 127, years = 2000:2022) %>% filter(region.category == \"KUNTA\") %>% mutate(municipality_code = as.integer(region.code)) # lets aggregate population data dat <- left_join(geofi::municipality_key_2023 %>% select(-year), sotkadata) %>% group_by(maakunta_code, maakunta_name_fi,year) %>% summarise(population = sum(primary.value, na.rm = TRUE)) %>% na.omit() %>% ungroup() %>% rename(code = maakunta_code, name = maakunta_name_fi) library(geofacet) library(ggplot2) ggplot(dat, aes(x = year, y = population/1000, group = name)) + geom_line() + facet_geo(facets = ~name, grid = grid_maakunta, scales = \"free_y\") + theme(axis.text.x = element_text(size = 6)) + scale_x_discrete(breaks = seq.int(from = 2000, to = 2023, by = 5)) + labs(title = unique(sotkadata$indicator.title.fi), y = \"%\") } else { message(\"'pxweb' not available\") }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_joining_attribute_data.html","id":"municipalities","dir":"Articles","previous_headings":"","what":"Municipalities","title":"Joining attribute data with geofi data","text":"Municipality data provided get_municipalities()-function contains 77 indicators variables 309 municipalities. Variables can used either aggregating data keys joining attribute data.","code":""},{"path":"https://ropengov.github.io/geofi/articles/geofi_joining_attribute_data.html","id":"population-data-from-sotkanet","dir":"Articles","previous_headings":"Municipalities","what":"Population data from Sotkanet","title":"Joining attribute data with geofi data","text":"first example join municipality level indicators Swedish-speaking population year end Sotkanet population data, obvious , municipality names Finnish among regional breakdowns allows us combine data spatial data using municipality_name_fi-variable. Now can plot map showing Share Swedish-speakers population, % Share foreign citizens population, % two panels sharing scale.","code":"library(geofi) muni <- get_municipalities(year = 2023) libs <- c(\"sotkanet\",\"dplyr\",\"tidyr\",\"janitor\",\"ggplot2\") if (check_namespaces(pkgs = libs)) { library(sotkanet) library(dplyr) sotkadata_swedish_speaking_pop <- GetDataSotkanet(indicators = 2433, years = 2000:2022) %>% filter(region.category == \"KUNTA\") %>% mutate(municipality_code = as.integer(region.code)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } if (check_namespaces(pkgs = libs)) { map_data <- right_join(muni, sotkadata_swedish_speaking_pop, by = c(\"municipality_code\" = \"municipality_code\")) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } if (check_namespaces(pkgs = libs)) { library(ggplot2) map_data %>% ggplot(aes(fill = primary.value)) + geom_sf() + labs(title = unique(sotkadata_swedish_speaking_pop$indicator.title.fi)) + theme(legend.position = \"top\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_joining_attribute_data.html","id":"zipcode-level","dir":"Articles","previous_headings":"","what":"Zipcode level","title":"Joining attribute data with geofi data","text":"can download data Paavo (Open data postal code area) using pxweb-package similar manner first example. can join data, must extract numerical postal code postal_code_area-variable.","code":"libs <- c(\"ggplot2\",\"pxweb\",\"janitor\") if (check_namespaces(pkgs = libs)) { library(pxweb) # lets get all zipcodes and all variables pxweb_query_list <- list(\"Postinumeroalue\"=c(\"*\"), \"Tiedot\"=c(\"he_vakiy\"), \"Vuosi\"=c(\"2021\")) px_raw <- pxweb_get(url = \"https://statfin.stat.fi/PXWeb/api/v1/en/Postinumeroalueittainen_avoin_tieto/uusin/paavo_pxt_12ey.px\", query = pxweb_query_list) px_data <- as_tibble( as.data.frame(px_raw, column.name.type = \"text\", variable.value.type = \"text\") ) %>% setNames(janitor::make_clean_names(names(.))) px_data %>% filter(postal_code_area != \"Finland\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } #> # A tibble: 3,027 × 3 #> postal_code_area year inhabitants_total_he #> #> 1 WHOLE COUNTRY 2021 5548241 #> 2 00100 Helsinki keskusta - Etu-Töölö (Helsinki) 2021 17893 #> 3 00120 Punavuori - Bulevardi (Helsinki) 2021 7230 #> 4 00130 Kaartinkaupunki (Helsinki) 2021 1716 #> 5 00140 Kaivopuisto - Ullanlinna (Helsinki) 2021 7845 #> 6 00150 Punavuori - Eira - Hernesaari (Helsinki) 2021 9368 #> 7 00160 Katajanokka (Helsinki) 2021 4932 #> 8 00170 Kruununhaka (Helsinki) 2021 7191 #> 9 00180 Kamppi - Ruoholahti (Helsinki) 2021 14440 #> 10 00190 Suomenlinna (Helsinki) 2021 694 #> # ℹ 3,017 more rows libs <- c(\"ggplot2\",\"pxweb\",\"janitor\") if (check_namespaces(pkgs = libs)) { px_data$posti_alue <- sub(\" .+$\", \"\", px_data$postal_code_area) # Lets join with spatial data and plot the area of each zipcode zipcodes19 <- get_zipcodes(year = 2019) zipcodes_map <- left_join(zipcodes19, px_data) ggplot(zipcodes_map) + geom_sf(aes(fill = inhabitants_total_he), color = alpha(\"white\", 1/3)) + labs(title = \"Total number of inhabitants, 2021\", fill = NULL) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"datasets","dir":"Articles","previous_headings":"","what":"Datasets","title":"Making maps using geofi-package","text":"Lets start latest municipality division get_municipalities() POLYGON data POINT data municipality_central_localities shipped package. come CRS EPSG:3067 can plotted together without manipulation.","code":"library(geofi) polygon <- get_municipalities(year = 2021, scale = 4500) point <- geofi::municipality_central_localities # municipality code into integer point$municipality_code <- as.integer(point$kuntatunnus) library(sf) # for spatial data operations later"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"r-packages-for-static-maps","dir":"Articles","previous_headings":"","what":"R-packages for static maps","title":"Making maps using geofi-package","text":"two main technologies creating static graphics R: base ggplot2. can used plot spatial data ie. create maps. addition, tmap : thematic maps R great tool want dig deeper cartography R. base ggplot2 tmap tmap versatile library creating static thematic maps R. supports sf-class objects fully compatible geospatial data available geofi. fluent using ggplot2 complex examples using ggplot2-package.","code":"# dev.off() plot(st_geometry(polygon[\"municipality_code\"])) plot(polygon[\"municipality_code\"], add = TRUE, border=\"white\") plot(st_geometry(point[\"municipality_code\"]), add = TRUE, color = \"black\") libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { library(ggplot2) ggplot() + geom_sf(data = polygon, aes(fill = municipality_code)) + geom_sf(data = point) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"static-maps-using-ggplot2","dir":"Articles","previous_headings":"","what":"Static maps using ggplot2","title":"Making maps using geofi-package","text":"ggplot2-packages three sf-class spesific functions: geom_sf plotting points, lines polygons, geom_sf_text geom_sf_label labeling maps. following examples using Uusimaa region Southern Finland.","code":"libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { library(dplyr) polygon_uusimaa <- polygon %>% filter(maakunta_name_fi %in% \"Uusimaa\") point_uusimaa <- point %>% filter(municipality_code %in% polygon_uusimaa$municipality_code) ggplot() + theme_light() + geom_sf(data = polygon_uusimaa, alpha = .3) + geom_sf(data = point_uusimaa) + geom_sf_text(data = point_uusimaa, aes(label = teksti)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"label-overlapping","dir":"Articles","previous_headings":"Static maps using ggplot2","what":"Label overlapping","title":"Making maps using geofi-package","text":"geom_sf_label geom_sf_text control overlapping labels common issue mapping objects various shapes sizes. ggrepel can solve problem though requires bit spatial data processing sf-package.","code":"libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { ggplot() + theme_light() + geom_sf(data = polygon_uusimaa, alpha = .3) + geom_sf(data = point_uusimaa) + ggrepel::geom_text_repel(data = point_uusimaa %>% sf::st_set_geometry(NULL) %>% bind_cols(point_uusimaa %>% sf::st_centroid() %>% sf::st_coordinates() %>% as_tibble()), aes(label = teksti, x = X, y = Y)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"faceting","dir":"Articles","previous_headings":"Static maps using ggplot2","what":"Faceting","title":"Making maps using geofi-package","text":"want present multiple variables regions can use facets.","code":""},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"facetting-and-combining-maps","dir":"Articles","previous_headings":"Static maps using ggplot2","what":"Facetting and combining maps","title":"Making maps using geofi-package","text":"Facetting useful way present data multiple variables covering region. useful approach , lets say, data indicator two different time points want separate maps separate times points, shared scale. create random data two year titled population plot data using facet_wrap()-function. However, often indicators want compare either different values (shared scale ideal), aggregated differently cover non-overlapping geographic region. may find patchwork useful example .","code":"pop_data <- bind_rows( tibble( municipality_code = polygon$municipality_code ) %>% mutate(population = rnorm(n = nrow(.), mean = 2000, sd = 250), time = 2020), tibble( municipality_code = polygon$municipality_code ) %>% mutate(population = rnorm(n = nrow(.), mean = 2000, sd = 250), time = 2021) ) pop_data #> # A tibble: 618 × 3 #> municipality_code population time #> #> 1 5 2000. 2020 #> 2 9 1866. 2020 #> 3 10 2510. 2020 #> 4 16 2238. 2020 #> 5 18 1910. 2020 #> 6 19 2158. 2020 #> 7 20 2085. 2020 #> 8 35 2052. 2020 #> 9 43 1976. 2020 #> 10 46 1999. 2020 #> # ℹ 608 more rows pop_map <- right_join(polygon, pop_data) libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { ggplot(pop_map, aes(fill = population)) + geom_sf() + facet_grid(~time) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } libs <- c(\"ggplot2\",\"patchwork\") if (check_namespaces(pkgs = libs)) { library(patchwork) p_municipalities <- ggplot(polygon, aes(fill = municipality_code)) + geom_sf() + theme(legend.position = \"top\") p_regions <- ggplot(polygon %>% count(maakunta_code), aes(fill = maakunta_code)) + geom_sf() + theme(legend.position = \"top\") p_uusimaa <- ggplot(polygon_uusimaa, aes(fill = municipality_code)) + geom_sf() + theme(legend.position = \"top\") (p_municipalities | p_regions) / p_uusimaa + plot_layout(nrow = 2, heights = c(1,0.6)) + plot_annotation(title = \"Combining multiple maps into a single (gg)plot\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"aesthetics","dir":"Articles","previous_headings":"Static maps using ggplot2","what":"Aesthetics","title":"Making maps using geofi-package","text":"Creating informative aesthetically pleasing maps always challenge recipe instant success. Colors important colorbrewer2.org can help . ggplot2 can use colorbrewer-palettes scale_fill_brewer, scale_fill_distiller, scale_fill_fermenter -functions. may want get rid grid well axis-labels -titles.","code":"libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { ggplot(polygon_uusimaa, aes(fill = municipality_code)) + geom_sf(color = alpha(\"white\", 1/3)) + scale_fill_fermenter(palette = \"YlGnBu\") + theme_minimal() + theme(axis.text = element_blank(), axis.title = element_blank(), panel.grid = element_blank(), legend.position = \"top\" ) + labs(title = \"Municipality code\", fill = NULL) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"interactive-maps","dir":"Articles","previous_headings":"","what":"Interactive maps","title":"Making maps using geofi-package","text":"interactive maps Leaflet option. exploring datasets almost CRS try mapview. larger datasets, probably safer WebGL based mapdeck. , experienced leaflet following example using leaflet. Leaflet default projection EPSG:3857 WGS84, also known “Google Mercator” “Web Mercator, reproject geofi data plot using leaflet.","code":"libs <- c(\"leaflet\") if (check_namespaces(pkgs = libs)) { polygon_wgs84 <- sf::st_transform(x = polygon, crs = \"+proj=longlat +datum=WGS84\") point_wgs84 <- sf::st_transform(x = point, crs = \"+proj=longlat +datum=WGS84\") library(leaflet) # lets create a palette for polygon fill (municipality codes) pal <- leaflet::colorNumeric(palette = \"Blues\", domain = polygon_wgs84$municipality_code) # labels for localities labels <- sprintf( \"%s<\/strong> (%s)\", point_wgs84$teksti, point_wgs84$kuntatunnus ) %>% lapply(htmltools::HTML) # popup for polygons popup <- sprintf( \"%s<\/strong> (%s)\", polygon_wgs84$municipality_name_fi, polygon_wgs84$municipality_code ) %>% lapply(htmltools::HTML) EPSG3067 <- leaflet::leafletCRS(crsClass = \"L.Proj.CRS\", code = \"EPSG:3067\", proj4def = \"+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs\", resolutions = 1.5^(25:15)) leaflet(polygon_wgs84, options = leafletOptions(worldCopyJump = F, crs = EPSG3067)) %>% addProviderTiles(provider = providers$CartoDB.Positron) %>% addPolygons(fillColor = ~pal(municipality_code), color = \"black\", weight = 1, opacity = 1, dashArray = \"3\", fillOpacity = 0.4, popup = popup, highlight = highlightOptions( weight = 2, color = \"#666\", dashArray = \"\", fillOpacity = 0.4, bringToFront = TRUE) ) %>% addMarkers(data = point_wgs84, label = labels, clusterOptions = markerClusterOptions(), labelOptions = labelOptions(opacity = .7, style = list(\"font-weight\" = \"normal\", padding = \"2px 4px\"), textsize = \"12px\", direction = \"auto\")) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"coordinate-reference-systems","dir":"Articles","previous_headings":"","what":"Coordinate reference systems","title":"Spatial data manipulation and analysis R and geofi-package","text":"book , look chapter Coordinate Systems R first. using spatial data R necessary data coordinate reference system (CRS). can check CRS sf-object sf::st_crs()-function. data can obtain using geofi transformed automatically EPSG:3067. spatial data providers Finland provide data CRS. However, sometimes data correctly projected reproject using st_transform. Web maps like Google maps Leaflet use WGS 1984 geographic (long/lat) coordinate system fine added interactive feature, avoided plotting data maps elsewhere. especially case large northern countries like Finland. demonstrate effect lets reproject municipality data WGS 1984 (usin EPSG code equivalent 4326) plot side side EPSG:3067 can see northern Finland larger right grid different.","code":"library(geofi) library(sf) library(dplyr) muni <- get_municipalities() point <- municipality_central_localities crs <- st_crs(muni) crs$input #> [1] \"EPSG:3067\" muni_4326 <- st_transform(muni, \"EPSG:4326\") crs <- st_crs(muni_4326) crs$input #> [1] \"EPSG:4326\" libs <- c(\"ggplot2\",\"patchwork\") if (check_namespaces(pkgs = libs)) { library(ggplot2) p1 <- ggplot(muni %>% st_union()) + geom_sf() + labs(subtitle = \"EPSG:3067\") p2 <- ggplot(muni_4326 %>% st_union()) + geom_sf() + labs(subtitle = \"EPSG:4326\") library(patchwork) wrap_plots(list(p1,p2), nrow = 1) + plot_annotation(title = \"Map of Finland in two different CRS\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"area","dir":"Articles","previous_headings":"","what":"Area","title":"Spatial data manipulation and analysis R and geofi-package","text":"compute area polygons (municipality case), ordering size plotting largest/smalles 10 can .","code":"libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { # compute area muni$area <- sf::st_area(muni) # largest muni %>% arrange(desc(area)) %>% slice(1:10) %>% ggplot() + geom_sf() + geom_sf_label(aes(label = name_fi)) + labs(title = \"largest 10\") # smallest muni %>% arrange(area) %>% slice(1:10) %>% ggplot() + geom_sf() + geom_sf_label(aes(label = name_fi)) + labs(title = \"smallest 10\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"subsetting","dir":"Articles","previous_headings":"","what":"Subsetting","title":"Spatial data manipulation and analysis R and geofi-package","text":"can subset data plotting subsetting data conventional filtering codes/names, can use geometric operations bounding box intersection. Lets imagine need detailed view metropolitan area Greater Helsinki consist following municipalities: Espoo, Helsinki, Vantaa, Hyvinkää, Järvenpää, Kauniainen, Kerava, Kirkkonummi, Mäntsälä, Nurmijärvi, Pornainen, Sipoo, Tuusula Vihti. can subset data just using names municipalities.","code":"greater_helsinki <- c('Espoo','Helsinki','Vantaa','Hyvinkää', 'Järvenpää','Kauniainen','Kerava','Kirkkonummi', 'Mäntsälä','Nurmijärvi','Pornainen','Sipoo','Tuusula','Vihti') greater_helsinki_polygon <- muni %>% filter(municipality_name_fi %in% greater_helsinki) if (check_namespaces(pkgs = libs)) { ggplot(greater_helsinki_polygon) + geom_sf() + geom_sf(data = point %>% filter(teksti %in% toupper(greater_helsinki))) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"subsetting-using-bounding-boxes","dir":"Articles","previous_headings":"Subsetting","what":"Subsetting using bounding boxes","title":"Spatial data manipulation and analysis R and geofi-package","text":"First, let’s create bounding box greater Helsinki polygons. , let’s use point data (municipality central localities) create bounding box","code":"bounding_box_polygon <- st_as_sfc(st_bbox(muni %>% filter(municipality_name_fi %in% greater_helsinki))) if (check_namespaces(pkgs = libs)) { ggplot(st_intersection(bounding_box_polygon, muni)) + geom_sf() + geom_sf(data = point %>% filter(teksti %in% toupper(greater_helsinki))) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } bounding_box_point <- st_as_sfc(st_bbox(point %>% filter(teksti %in% toupper(greater_helsinki)))) if (check_namespaces(pkgs = libs)) { ggplot(st_intersection(bounding_box_point, muni)) + geom_sf() + geom_sf(data = point %>% filter(teksti %in% toupper(greater_helsinki))) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"subsetting-neigbours","dir":"Articles","previous_headings":"Subsetting","what":"Subsetting neigbours","title":"Spatial data manipulation and analysis R and geofi-package","text":"Neighboring intersecting objects can found using st_intersection() following manner plot Helsinki ’s neighbors.","code":"helsinki <- muni %>% filter(municipality_name_fi == \"Helsinki\") neigbour_codes <- st_intersection(muni,helsinki) %>% pull(municipality_code) if (check_namespaces(pkgs = libs)) { ggplot(muni %>% filter(municipality_code %in% neigbour_codes)) + geom_sf() + geom_sf_label(aes(label = municipality_name_fi)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"dissolving-polygons-union","dir":"Articles","previous_headings":"","what":"Dissolving polygons (Union)","title":"Spatial data manipulation and analysis R and geofi-package","text":"Often need create alternative regional breakdown existing ones aggregating data accordingly. First need subset required members dissolve using st_union(). classify municipalities three equal size categories based area, dissolve plot. Lets first plot smallest category single multipolygon. union three data can use group_by summarise","code":"muni$area_class <- cut_number(x = as.numeric(muni$area), n = 3) # # if (check_namespaces(pkgs = libs)) { muni %>% filter(area_class == levels(muni$area_class)[1]) %>% st_union() %>% ggplot() + geom_sf() } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } if (check_namespaces(pkgs = libs)) { muni %>% group_by(area_class) %>% summarise() %>% ggplot() + geom_sf(aes(fill = area_class)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"centroids-buffers-grids-and-voronois","dir":"Articles","previous_headings":"","what":"Centroids, buffers, grids and voronois","title":"Spatial data manipulation and analysis R and geofi-package","text":"following operarions derive Marko Kallio’s course CSC February 2020 Spatial data analysis R.","code":""},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"polygon-centroids","dir":"Articles","previous_headings":"Centroids, buffers, grids and voronois","what":"Polygon centroids","title":"Spatial data manipulation and analysis R and geofi-package","text":"geofi contains data municipality central locations (geofi::municipality_central_localities). Instead may need actual geographical centers ie. centroids polygon can computed using st_centroid plotted ggplot.","code":"muni_centroids <- st_centroid(muni) if (check_namespaces(pkgs = libs)) { ggplot() + geom_sf(data = muni) + geom_sf(data = muni_centroids, color = \"blue\") + # plot also the municipality_central_localities geom_sf(data = municipality_central_localities, color = \"red\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"buffers","dir":"Articles","previous_headings":"Centroids, buffers, grids and voronois","what":"Buffers","title":"Spatial data manipulation and analysis R and geofi-package","text":"Buffers can useful, instance, calculating share buildings within certain radius central localities. example explained , show create 15km radius around polygon centroids.","code":"muni_centroids_buffer <- muni_centroids %>% st_buffer(dist = 15000) if (check_namespaces(pkgs = libs)) { ggplot() + geom_sf(data = muni) + geom_sf(data = muni_centroids_buffer) + geom_sf(data = muni_centroids, shape = 3) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"creating-regular-grids","dir":"Articles","previous_headings":"Centroids, buffers, grids and voronois","what":"Creating regular grids","title":"Spatial data manipulation and analysis R and geofi-package","text":"can download predefined grids Statistics Finland using get_statistical_grid get_population_grid() -functions geofi-package. data contains just geographical shape, also attribute data population etc. within grid cells. However, may need create custom grid, instance aggregate point data, can created st_make_grid() function. describes Marko Kallio Spatial data analysis R. creates regular grid bounding box ‘sf’ object. Can given certain cell size, number cells x y directions. ‘’ tells function kind regular grid wanted (polygons, corners, centers). Fishnets lines rather polygons can created simply casting polygons “LINESTRING”s. resulting polygon grid ‘sfc’ object, needs made ‘sf’ order us add ID-attribute. example pick northern Muonio municipality create custom 2km*4km grid top . Afterward aggregate number reindeer grid cell data.","code":"muonio <- muni %>% filter(municipality_name_fi == \"Muonio\") grid_sf <- st_make_grid(muonio, cellsize = c(2000,4000), what=\"polygons\") %>% st_sf() grid_clip <- st_intersection(grid_sf, muonio) grid_clip$rank <- 1:nrow(grid_clip) if (check_namespaces(pkgs = libs)) { ggplot(grid_clip) + geom_sf(aes(fill = rank), color = alpha(\"white\", 1/3), size = 3) + scale_fill_viridis_c() + theme_minimal() } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"voronoi-polygons","dir":"Articles","previous_headings":"Centroids, buffers, grids and voronois","what":"Voronoi polygons","title":"Spatial data manipulation and analysis R and geofi-package","text":"mathematics, Voronoi diagram partition plane regions close given set objects. Source: Wikipedia: Voronoi diagram Perhaps useful operation, worth taking look readily available sf function st_voronoi. case, creates layer polygons closest municipality central locality.","code":"library(geofi) library(sf) muni_voronoi <- municipality_central_localities %>% st_union() %>% st_voronoi() %>% st_cast() %>% st_sf() %>% st_intersection(st_union(muni)) %>% mutate(rnk = 1:nrow(.)) if (check_namespaces(pkgs = libs)) { ggplot(muni_voronoi) + geom_sf(aes(fill = rnk)) + geom_sf(data = municipality_central_localities, shape = 4) + scale_fill_fermenter(palette = \"YlGnBu\") + theme_minimal() + theme(axis.text = element_blank(), axis.title = element_blank(), panel.grid = element_blank(), legend.position = \"none\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"calculating-distances","dir":"Articles","previous_headings":"","what":"Calculating distances","title":"Spatial data manipulation and analysis R and geofi-package","text":"Calculating distances certainly core geospatial analysis. exercise interested calculating distances municipality central localities Finland. expected, talking great circle distances , ie. crow flies type distances. can calculate distance matrices using st_distance()-function sf-package computes distances pairs geometries. geofi-package contains internal data municipality_central_localities use calculate distances points. First need subset data replace original municipality name column (teksti) better latest municipality key. Let’s aim data structure municipality name code origin destination. get lets create loop calculates distance matrices municipality municipalities, assign data list finally bind data frames single data. Finally can draw two plots verify results. First let’s draw bar plot 20 municipality central localities nearest Helsinki , lets find municipality central locality nearest center Finland. finally lets draw bar plot 20 furthest localities last, need show distances also map.","code":"kunta <- geofi::municipality_central_localities %>% select(teksti,kuntatunnus) %>% mutate(kuntatunnus = as.integer(kuntatunnus)) %>% select(-teksti) %>% left_join(geofi::municipality_key_2022 %>% select(municipality_code, municipality_name_fi), by = c(\"kuntatunnus\" = \"municipality_code\")) %>% rename(teksti = municipality_name_fi) kunta #> Simple feature collection with 311 features and 2 fields #> Geometry type: POINT #> Dimension: XY #> Bounding box: xmin: 91954.76 ymin: 6638646 xmax: 701036.8 ymax: 7755601 #> Projected CRS: ETRS89 / TM35FIN(E,N) #> First 10 features: #> kuntatunnus teksti geometry #> 1 890 Utsjoki POINT (501086.5 7755601) #> 2 498 Muonio POINT (360886 7542117) #> 3 148 Inari POINT (522136.3 7616266) #> 4 47 Enontekiö POINT (362091.4 7589569) #> 5 273 Kolari POINT (362088.2 7471921) #> 6 976 Ylitornio POINT (350962.8 7359884) #> 7 732 Salla POINT (573395.9 7413832) #> 8 698 Rovaniemi POINT (443256 7375804) #> 9 854 Pello POINT (366564.7 7409490) #> 10 320 Kemijärvi POINT (519078 7399655) d_list <- list() kuntadatan_teksti_ja_kuntatunnus <- sf::st_drop_geometry(kunta) %>% select(teksti,kuntatunnus) for (i in 1:nrow(kunta)){ dist_tmp <- sf::st_distance(x = kunta[i,], y = kunta) tibble(origin_name = kunta[i,]$teksti, origin_code = kunta[i,]$kuntatunnus) %>% bind_cols(kuntadatan_teksti_ja_kuntatunnus %>% rename(destination_name = teksti, destination_code = kuntatunnus)) %>% mutate(dist = dist_tmp[1,]) -> d_list[[i]] } kunta_dist <- do.call(\"bind_rows\", d_list) %>% mutate(dist = as.numeric(dist)) head(kunta_dist) #> # A tibble: 6 × 5 #> origin_name origin_code destination_name destination_code dist #> #> 1 Utsjoki 890 Utsjoki 890 0 #> 2 Utsjoki 890 Muonio 498 255404. #> 3 Utsjoki 890 Inari 148 140915. #> 4 Utsjoki 890 Enontekiö 47 216532. #> 5 Utsjoki 890 Kolari 273 315903. #> 6 Utsjoki 890 Ylitornio 976 423236. if (check_namespaces(pkgs = libs)) { ggplot(kunta_dist %>% filter(origin_name == \"Helsinki\") %>% arrange(dist) %>% slice(1:20), aes(x = dist, y = reorder(destination_name, dist), label = round(dist))) + geom_col() + geom_text(aes(x = 1000), color = \"white\", hjust = 0) + labs(title = \"Nearest 20 municipality localities to Helsinki\", x = \"distance in meters\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } # We firt need the country map as a single polygon geofi::get_municipalities() %>% sf::st_union() %>% # then we need to compute the centroid of that polygon sf::st_centroid() -> fin_centroid # The let's find the nearest neighbour with distance <- st_distance(x = fin_centroid, y = kunta) kuntadatan_teksti_ja_kuntatunnus %>% mutate(dist = as.numeric(distance)) %>% arrange(dist) -> closest_to_center head(closest_to_center) #> teksti kuntatunnus dist #> 1 Siikalatva 791 13582.66 #> 2 Pyhäntä 630 17512.41 #> 3 Kärsämäki 317 33270.89 #> 4 Haapavesi 71 38730.91 #> 5 Vaala 785 50150.05 #> 6 Utajärvi 889 61041.41 furthest20 <- kunta_dist %>% filter(origin_name == closest_to_center[1,]$teksti) %>% arrange(desc(dist)) %>% slice(1:20) if (check_namespaces(pkgs = libs)) { ggplot(furthest20, aes(x = dist, y = reorder(destination_name, dist), label = round(dist))) + geom_col() + geom_text(aes(x = 10000), color = \"white\", hjust = 0) + labs(title = paste(\"Furthest 20 municipality localities \\nfrom the most central locality of \", closest_to_center[1,]$teksti), x = \"distance in meters\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } sf_lahto <- kunta %>% filter(teksti %in% closest_to_center[1,]$teksti) %>% select(teksti) sf_paate <- kunta %>% filter(teksti %in% furthest20$destination_name) %>% select(teksti) triplst <- list() for (i in 1:nrow(sf_paate)){ triplst[[i]] <- rbind( sf_lahto, sf_paate[i,] ) %>% summarize(m = mean(row_number()),do_union=FALSE) %>% st_cast(\"LINESTRING\") } trips <- do.call(\"rbind\", triplst) if (check_namespaces(pkgs = libs)) { ggplot() + geom_sf(data = muni %>% st_union(), alpha = .3) + geom_sf(data = trips, color = \"dim grey\") + geom_sf_label(data = sf_lahto, aes(label = teksti)) + geom_sf_text(data = sf_paate, aes(label = teksti)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Markus Kainu. Author, maintainer. Joona Lehtomaki. Author. Juuso Parkkinen. Contributor. Jani Miettinen. Contributor. Pyry Kantanen. Contributor. Sampo Vesanen. Contributor. Leo Lahti. Author.","code":""},{"path":"https://ropengov.github.io/geofi/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"(C) Markus Kainu, Joona Lehtomaki, Juuso Parkkinen, Jani Miettinen, Pyry Kantanen, Sampo Vesanen, Leo Lahti 2015-2023. geofi: Access Finnish Geospatial Data, ","code":"@Manual{, title = {geofi: Access Finnish Geospatial Data}, author = {Markus Kainu and Joona Lehtomaki and Juuso Parkkinen and Jani Miettinen and Pyry Kantanen and Sampo Vesanen and Leo Lahti}, year = {2023}, note = {R package version 1.0.8}, url = {https://github.com/rOpenGov/geofi}, }"},{"path":"https://ropengov.github.io/geofi/index.html","id":"geofi---access-finnish-geospatial-data-","dir":"","previous_headings":"","what":"Access Finnish Geospatial Data","title":"Access Finnish Geospatial Data","text":"Access Finnish Geospatial Data.","code":""},{"path":"https://ropengov.github.io/geofi/index.html","id":"installation-and-use","dir":"","previous_headings":"","what":"Installation and use","title":"Access Finnish Geospatial Data","text":"geofi-package can download geospatial data municipalities, zipcodes population statistical grids Statistics Finland WFS-api. addition, -board municipality keys aggregating municipality-level data higher level regional distributions based Statistics Finland classification API. examples data can access using geofi. Please closer look vignettes comprehensive use cases.","code":"# install from CRAN install.packages(\"geofi\") # Install development version from GitHub remotes::install_github(\"ropengov/geofi\") library(geofi) d1 <- get_municipalities(year = 2023) d2 <- get_zipcodes(year = 2023) d3 <- get_statistical_grid(resolution = 5) d4 <- get_population_grid(resolution = 5) library(ggplot2) library(dplyr) theme_set( theme_minimal(base_family = \"Arial\") + theme(legend.position= \"none\", axis.text = element_blank(), axis.title = element_blank(), panel.grid = element_blank() ) ) p1 <- ggplot(d1, aes(fill = kunta)) + geom_sf(colour = alpha(\"white\", 1/3)) + labs(subtitle = \"municipalities\") p2 <- ggplot(d1 %>% count(maakunta_code), aes(fill = maakunta_code)) + geom_sf(colour = alpha(\"white\", 1/3)) + labs(subtitle = \"Aggregated municipality data \\nat region (maakunta) level \\n(one of many!)\") p3 <- ggplot(d2, aes(fill = as.integer(posti_alue))) + geom_sf(colour = alpha(\"white\", 1/3)) + labs(subtitle = \"zipcodes\") p4 <- ggplot(d3, aes(fill = nro)) + geom_sf(colour = alpha(\"white\", 1/3)) + labs(subtitle = \"statistical grid\") p5 <- ggplot(d4, aes(fill = id_nro)) + geom_sf(colour = alpha(\"white\", 1/3)) + labs(subtitle = \"population grid\") p6 <- ggplot(municipality_central_localities, aes(color = as.integer(kuntatunnus))) + geom_sf() + labs(subtitle = \"Central municipality localities\") library(patchwork) wrap_plots(list(p1,p2,p3,p4,p5,p6), ncol = 3) + patchwork::plot_annotation(title = \"Spatial data in geofi-package\")"},{"path":"https://ropengov.github.io/geofi/index.html","id":"contribute","dir":"","previous_headings":"Installation and use","what":"Contribute","title":"Access Finnish Geospatial Data","text":"Contributions welcome: Use issue tracker feedback bug reports. Send pull requests Star us Github page","code":""},{"path":"https://ropengov.github.io/geofi/index.html","id":"acknowledgements","dir":"","previous_headings":"Installation and use","what":"Acknowledgements","title":"Access Finnish Geospatial Data","text":"Kindly cite work follows: Markus Kainu, Joona Lehtomäki, Juuso Parkkinen, Jani Miettinen, Pyry Kantanen, Leo Lahti Retrieval analysis open geospatial data Finland geofi R package. R package version 1.0.9. URL: https://ropengov.github.io/geofi/ grateful contributors. project part rOpenGov.","code":""},{"path":"https://ropengov.github.io/geofi/reference/check_api_access.html","id":null,"dir":"Reference","previous_headings":"","what":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","title":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","text":"Check R access resources http://geo.stat.fi/geoserver/wfs","code":""},{"path":"https://ropengov.github.io/geofi/reference/check_api_access.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","text":"","code":"check_api_access()"},{"path":"https://ropengov.github.io/geofi/reference/check_api_access.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","text":"logical.","code":""},{"path":"https://ropengov.github.io/geofi/reference/check_api_access.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","text":"Markus Kainu markus.kainu@kapsi.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/check_api_access.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","text":"","code":"if (FALSE) { check_api_access() }"},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"Statistics Finland provides numerical codes regions two three digit characters. default, converted integers geofi convenience, can converted back using function.","code":""},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"","code":"convert_municipality_key_codes(muni_key = geofi::municipality_key)"},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"muni_key municipality key geofi-package","code":""},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"tibble codes converted variable length characters provided Statistics Finland","code":""},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"Markus Kainu markus.kainu@kapsi.fi, Pyry Kantanen","code":""},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"","code":"if (FALSE) { convert_municipality_key_codes(muni_key = geofi::municipality_key) }"},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"Thin wrapper around Finnish zip code areas provided Statistics Finland.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"","code":"get_municipalities(year = 2023, scale = 4500, codes_as_character = FALSE)"},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"year numeric year administrative borders. Available 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 2023. scale scale resolution shape. Two options: 1000 equals 1:1 000 000 4500 equals 1:4 500 000. codes_as_character logical determining region codes returned strings equal width originally provided Statistics Finland instead integers.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"Markus Kainu markus.kainu@kela.fi, Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"","code":"if (FALSE) { f <- get_municipalities(year=2016, scale = 4500) plot(f) }"},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"Thin wrapper around Finnish zip code areas provided Statistics Finland.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"","code":"get_municipality_pop(year = 2021, codes_as_character = FALSE)"},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"year numeric year administrative borders. Available 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 2021. codes_as_character logical determining region codes returned strings equal width originally provided Statistics Finland instead integers.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"number population last day reference year combined municipality borders year . Calling function year = 2019 returns population data 2019-12-31 spatial data 2020. statistical variables data : total population (vaesto), share total population (vaesto_p), number men (miehet), men's share population area (miehet_p) women (naiset), women's share (naiset_p), aged 15: number (ika_0_14), share (ika_0_14p), aged 15 64: number (ika_15_64), share (ika_15_64p), aged 65 : number (ika_65_), share (ika_65_p).","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"Markus Kainu markus.kainu@kela.fi, Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"","code":"if (FALSE) { f <- get_municipality_pop(year=2020) plot(f) }"},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"Get Finnish Population grid two different resolutions years 2010-2020 Thin wrapper around Finnish population grid data provided Statistics Finland.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"","code":"get_population_grid(year = 2021, resolution = 5)"},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"year numeric year population grid. Years available 2005 2010-2021. resolution 1 (1km x 1km) 5 (5km x 5km)","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"information dataset Paikkatietohakemisto","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"Markus Kainu markus.kainu@kela.fi, Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"","code":"if (FALSE) { f <- get_population_grid(year=2017) plot(f) }"},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"Thin wrapper around Finnish statistical grid data provided Statistics Finland.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"","code":"get_statistical_grid(resolution = 5, auxiliary_data = FALSE)"},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"resolution integer 1 (1km x 1km) 5 (5km x 5km) auxiliary_data logical Whether include auxiliary data containing municipality membership data. Default FALSE","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"Markus Kainu markus.kainu@kela.fi, Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"","code":"if (FALSE) { f <- get_statistical_grid(resolution = 5, auxiliary_data = FALSE) plot(f) }"},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"Thin wrapper around Finnish zip code areas provided Statistics Finland.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"","code":"get_zipcodes(year = 2023, extend_to_sea_areas = FALSE)"},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"year numeric year zipcodes. Years available 2015-2023. extend_to_sea_areas logical. Extend data show also sea areas.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"Markus Kainu markus.kainu@kela.fi, Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"","code":"if (FALSE) { f <- get_zipcodes(year=2022) plot(f) }"},{"path":"https://ropengov.github.io/geofi/reference/grid_ahvenanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Ahvenanmaa region — grid_ahvenanmaa","title":"custom geofacet grid for Ahvenanmaa region — grid_ahvenanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_ahvenanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Ahvenanmaa region — grid_ahvenanmaa","text":"","code":"grid_ahvenanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_ahvenanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Ahvenanmaa region — grid_ahvenanmaa","text":"data frame 16 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_karjala.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Etelä-Karjala region as in 2020 — grid_etela_karjala","title":"custom geofacet grid for Etelä-Karjala region as in 2020 — grid_etela_karjala","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_karjala.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Etelä-Karjala region as in 2020 — grid_etela_karjala","text":"","code":"grid_etela_karjala"},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_karjala.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Etelä-Karjala region as in 2020 — grid_etela_karjala","text":"data frame 9 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_pohjanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Etelä-Pohjanmaa — grid_etela_pohjanmaa","title":"custom geofacet grid for Etelä-Pohjanmaa — grid_etela_pohjanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_pohjanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Etelä-Pohjanmaa — grid_etela_pohjanmaa","text":"","code":"grid_etela_pohjanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_pohjanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Etelä-Pohjanmaa — grid_etela_pohjanmaa","text":"data frame 18 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_savo.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Etelä-Savo — grid_etela_savo","title":"custom geofacet grid for Etelä-Savo — grid_etela_savo","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_savo.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Etelä-Savo — grid_etela_savo","text":"","code":"grid_etela_savo"},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_savo.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Etelä-Savo — grid_etela_savo","text":"data frame 12 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_hyvinvointialue.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Wellbeing services counties — grid_hyvinvointialue","title":"custom geofacet grid for Wellbeing services counties — grid_hyvinvointialue","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_hyvinvointialue.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Wellbeing services counties — grid_hyvinvointialue","text":"","code":"grid_hyvinvointialue"},{"path":"https://ropengov.github.io/geofi/reference/grid_hyvinvointialue.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Wellbeing services counties — grid_hyvinvointialue","text":"data frame 23 rows 4 variables: name Wellbeing services county name (hyvinvointialue) Finnish code Wellbeing services counties code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kainuu.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Kainuu region — grid_kainuu","title":"custom geofacet grid for Kainuu region — grid_kainuu","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kainuu.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Kainuu region — grid_kainuu","text":"","code":"grid_kainuu"},{"path":"https://ropengov.github.io/geofi/reference/grid_kainuu.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Kainuu region — grid_kainuu","text":"data frame 8 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kanta_hame.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Kanta-Häme region — grid_kanta_hame","title":"custom geofacet grid for Kanta-Häme region — grid_kanta_hame","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kanta_hame.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Kanta-Häme region — grid_kanta_hame","text":"","code":"grid_kanta_hame"},{"path":"https://ropengov.github.io/geofi/reference/grid_kanta_hame.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Kanta-Häme region — grid_kanta_hame","text":"data frame 11 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_pohjanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Keski-Pohjanmaa region — grid_keski_pohjanmaa","title":"custom geofacet grid for Keski-Pohjanmaa region — grid_keski_pohjanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_pohjanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Keski-Pohjanmaa region — grid_keski_pohjanmaa","text":"","code":"grid_keski_pohjanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_pohjanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Keski-Pohjanmaa region — grid_keski_pohjanmaa","text":"data frame 8 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_suomi.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Keski-Suomi region as in 2020 — grid_keski_suomi","title":"custom geofacet grid for Keski-Suomi region as in 2020 — grid_keski_suomi","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_suomi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Keski-Suomi region as in 2020 — grid_keski_suomi","text":"","code":"grid_keski_suomi"},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_suomi.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Keski-Suomi region as in 2020 — grid_keski_suomi","text":"data frame 22 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kymenlaakso.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Kymenlaakso region — grid_kymenlaakso","title":"custom geofacet grid for Kymenlaakso region — grid_kymenlaakso","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kymenlaakso.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Kymenlaakso region — grid_kymenlaakso","text":"","code":"grid_kymenlaakso"},{"path":"https://ropengov.github.io/geofi/reference/grid_kymenlaakso.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Kymenlaakso region — grid_kymenlaakso","text":"data frame 6 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_lappi.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Lappi region as in 2020 — grid_lappi","title":"custom geofacet grid for Lappi region as in 2020 — grid_lappi","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_lappi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Lappi region as in 2020 — grid_lappi","text":"","code":"grid_lappi"},{"path":"https://ropengov.github.io/geofi/reference/grid_lappi.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Lappi region as in 2020 — grid_lappi","text":"data frame 21 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_maakunta.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for regions — grid_maakunta","title":"custom geofacet grid for regions — grid_maakunta","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_maakunta.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for regions — grid_maakunta","text":"","code":"grid_maakunta"},{"path":"https://ropengov.github.io/geofi/reference/grid_maakunta.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for regions — grid_maakunta","text":"data frame 19 rows 4 variables: name Region name (maakunta) Finnish code Region code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_paijat_hame.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Päijät-Häme region — grid_paijat_hame","title":"custom geofacet grid for Päijät-Häme region — grid_paijat_hame","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_paijat_hame.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Päijät-Häme region — grid_paijat_hame","text":"","code":"grid_paijat_hame"},{"path":"https://ropengov.github.io/geofi/reference/grid_paijat_hame.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Päijät-Häme region — grid_paijat_hame","text":"data frame 10 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pirkanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Pirkanmaa region — grid_pirkanmaa","title":"custom geofacet grid for Pirkanmaa region — grid_pirkanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pirkanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Pirkanmaa region — grid_pirkanmaa","text":"","code":"grid_pirkanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_pirkanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Pirkanmaa region — grid_pirkanmaa","text":"data frame 23 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Pohjanmaa region — grid_pohjanmaa","title":"custom geofacet grid for Pohjanmaa region — grid_pohjanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Pohjanmaa region — grid_pohjanmaa","text":"","code":"grid_pohjanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Pohjanmaa region — grid_pohjanmaa","text":"data frame 14 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_karjala.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Pohjois-Karjala region — grid_pohjois_karjala","title":"custom geofacet grid for Pohjois-Karjala region — grid_pohjois_karjala","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_karjala.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Pohjois-Karjala region — grid_pohjois_karjala","text":"","code":"grid_pohjois_karjala"},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_karjala.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Pohjois-Karjala region — grid_pohjois_karjala","text":"data frame 13 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_pohjanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Pohjois-Pohjanmaa region — grid_pohjois_pohjanmaa","title":"custom geofacet grid for Pohjois-Pohjanmaa region — grid_pohjois_pohjanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_pohjanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Pohjois-Pohjanmaa region — grid_pohjois_pohjanmaa","text":"","code":"grid_pohjois_pohjanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_pohjanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Pohjois-Pohjanmaa region — grid_pohjois_pohjanmaa","text":"data frame 30 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_savo.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Pohjois-Savo region — grid_pohjois_savo","title":"custom geofacet grid for Pohjois-Savo region — grid_pohjois_savo","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_savo.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Pohjois-Savo region — grid_pohjois_savo","text":"","code":"grid_pohjois_savo"},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_savo.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Pohjois-Savo region — grid_pohjois_savo","text":"data frame 19 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_sairaanhoitop.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for health care districts — grid_sairaanhoitop","title":"custom geofacet grid for health care districts — grid_sairaanhoitop","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_sairaanhoitop.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for health care districts — grid_sairaanhoitop","text":"","code":"grid_sairaanhoitop"},{"path":"https://ropengov.github.io/geofi/reference/grid_sairaanhoitop.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for health care districts — grid_sairaanhoitop","text":"data frame 21 rows 4 variables: name District name (Sairaanhoitopiiri) Finnish code District code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_satakunta.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Satakunta region — grid_satakunta","title":"custom geofacet grid for Satakunta region — grid_satakunta","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_satakunta.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Satakunta region — grid_satakunta","text":"","code":"grid_satakunta"},{"path":"https://ropengov.github.io/geofi/reference/grid_satakunta.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Satakunta region — grid_satakunta","text":"data frame 16 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_uusimaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Uusimaa region — grid_uusimaa","title":"custom geofacet grid for Uusimaa region — grid_uusimaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_uusimaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Uusimaa region — grid_uusimaa","text":"","code":"grid_uusimaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_uusimaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Uusimaa region — grid_uusimaa","text":"data frame 26 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_varsinais_suomi.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Varsinais-Suomi region — grid_varsinais_suomi","title":"custom geofacet grid for Varsinais-Suomi region — grid_varsinais_suomi","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_varsinais_suomi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Varsinais-Suomi region — grid_varsinais_suomi","text":"","code":"grid_varsinais_suomi"},{"path":"https://ropengov.github.io/geofi/reference/grid_varsinais_suomi.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Varsinais-Suomi region — grid_varsinais_suomi","text":"data frame 27 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_central_localities.html","id":null,"dir":"Reference","previous_headings":"","what":"A simple feature point data containing locations of municipalities central localities — municipality_central_localities","title":"A simple feature point data containing locations of municipalities central localities — municipality_central_localities","text":"Data extracted latest version (April 2023) Topographic Database (Maastotietokanta) National Land Survey Finland (Maanmittauslaitos)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_central_localities.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A simple feature point data containing locations of municipalities central localities — municipality_central_localities","text":"","code":"municipality_central_localities"},{"path":"https://ropengov.github.io/geofi/reference/municipality_central_localities.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"A simple feature point data containing locations of municipalities central localities — municipality_central_localities","text":"simple feature POINT data 311 rows 21 variables: mtk_id mtk_id sijaintitarkkuus location precision aineistolahde data source alkupvm start date teksti Municipality name suunta direction dx dx dy dy kohderyhmä kohderyhmä kohdeluokka kohdeluokka ladontatunnus ladontatunnus kirjasintyyppikoodi kirjasintyyppikoodi kirjasinkoko kirjasinkoko kirjasinvarikoodi kirjasinvarikoodi kirjasinkallistuskulma kirjasinkallistuskulma kirjasinvalyskerroin kirjasinvalyskerroin kuntatunnus municipality code municipality_code municipality code municipality_name_fi municipality name Finnish municipality_name_sv municipality name Swedish municipality_name_en municipality name English geometry geometry","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key.html","id":null,"dir":"Reference","previous_headings":"","what":"Aggregated municipality key table for years 2013-2023 — municipality_key","title":"Aggregated municipality key table for years 2013-2023 — municipality_key","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Aggregated municipality key table for years 2013-2023 — municipality_key","text":"","code":"municipality_key"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Aggregated municipality key table for years 2013-2023 — municipality_key","text":"data frame 3440 rows 77 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish tyossakayntial_name_sv Työssäkäyntialue name Swedish tyossakayntial_name_en Työssäkäyntialue name English vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) kela_vakuutuspiiri_name_fi Kelan vakuutuspiiri name Finnish (Insurance District) kela_vakuutuspiiri_code Kelan vakuutuspiiri unofficial code (Insurance District) kela_vakuutuspiiri_name_sv Kelan vakuutuspiiri name Swedish (Insurance District) kela_vakuutuspiiri_name_en Kelan vakuutuspiiri name English (Insurance District) kela_asumistukialue_name_fi Kelan asumistuen kuntaryhmät name Finnish (Municipality categories housing allowance) kela_asumistukialue_code Kelan asumistuen kuntaryhmät unofficial code (Municipality categories housing allowance) kela_asumistukialue_name_sv Kelan asumistuen kuntaryhmät name Swedish (Municipality categories housing allowance) kela_asumistukialue_name_en Kelan asumistuen kuntaryhmät name English (Municipality categories housing allowance) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Aggregated municipality key table for years 2013-2023 — municipality_key","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2013.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2013 — municipality_key_2013","title":"Municipality key table for 2013 — municipality_key_2013","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2013.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2013 — municipality_key_2013","text":"","code":"municipality_key_2013"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2013.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2013 — municipality_key_2013","text":"data frame 320 rows 33 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2013.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2013 — municipality_key_2013","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2014.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2014 — municipality_key_2014","title":"Municipality key table for 2014 — municipality_key_2014","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2014.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2014 — municipality_key_2014","text":"","code":"municipality_key_2014"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2014.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2014 — municipality_key_2014","text":"data frame 320 rows 37 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2014.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2014 — municipality_key_2014","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2015.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2015 — municipality_key_2015","title":"Municipality key table for 2015 — municipality_key_2015","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2015.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2015 — municipality_key_2015","text":"","code":"municipality_key_2015"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2015.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2015 — municipality_key_2015","text":"data frame 317 rows 37 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2015.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2015 — municipality_key_2015","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2016.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2016 — municipality_key_2016","title":"Municipality key table for 2016 — municipality_key_2016","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2016.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2016 — municipality_key_2016","text":"","code":"municipality_key_2016"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2016.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2016 — municipality_key_2016","text":"data frame 313 rows 37 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2016.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2016 — municipality_key_2016","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2017.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2017 — municipality_key_2017","title":"Municipality key table for 2017 — municipality_key_2017","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2017.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2017 — municipality_key_2017","text":"","code":"municipality_key_2017"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2017.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2017 — municipality_key_2017","text":"data frame 311 rows 53 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2017.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2017 — municipality_key_2017","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2018.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2018 — municipality_key_2018","title":"Municipality key table for 2018 — municipality_key_2018","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2018.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2018 — municipality_key_2018","text":"","code":"municipality_key_2018"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2018.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2018 — municipality_key_2018","text":"data frame 311 rows 63 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2018.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2018 — municipality_key_2018","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2019.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2019 — municipality_key_2019","title":"Municipality key table for 2019 — municipality_key_2019","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2019.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2019 — municipality_key_2019","text":"","code":"municipality_key_2019"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2019.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2019 — municipality_key_2019","text":"data frame 311 rows 67 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2019.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2019 — municipality_key_2019","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2020.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2020 — municipality_key_2020","title":"Municipality key table for 2020 — municipality_key_2020","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2020.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2020 — municipality_key_2020","text":"","code":"municipality_key_2020"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2020.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2020 — municipality_key_2020","text":"data frame 310 rows 67 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2020.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2020 — municipality_key_2020","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2021.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2021 — municipality_key_2021","title":"Municipality key table for 2021 — municipality_key_2021","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2021.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2021 — municipality_key_2021","text":"","code":"municipality_key_2021"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2021.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2021 — municipality_key_2021","text":"data frame 309 rows 67 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2021.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2021 — municipality_key_2021","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2022.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2022 — municipality_key_2022","title":"Municipality key table for 2022 — municipality_key_2022","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2022.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2022 — municipality_key_2022","text":"","code":"municipality_key_2022"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2022.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2022 — municipality_key_2022","text":"data frame 309 rows 73 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) kela_vakuutuspiiri_name_fi Kelan vakuutuspiiri name Finnish (Insurance District) kela_vakuutuspiiri_code Kelan vakuutuspiiri unofficial code (Insurance District) kela_vakuutuspiiri_name_sv Kelan vakuutuspiiri name Swedish (Insurance District) kela_vakuutuspiiri_name_en Kelan vakuutuspiiri name English (Insurance District) kela_asumistukialue_name_fi Kelan asumistuen kuntaryhmät name Finnish (Municipality categories housing allowance) kela_asumistukialue_code Kelan asumistuen kuntaryhmät unofficial code (Municipality categories housing allowance) kela_asumistukialue_name_sv Kelan asumistuen kuntaryhmät name Swedish (Municipality categories housing allowance) kela_asumistukialue_name_en Kelan asumistuen kuntaryhmät name English (Municipality categories housing allowance) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2022.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2022 — municipality_key_2022","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2023.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2023 — municipality_key_2023","title":"Municipality key table for 2023 — municipality_key_2023","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2023.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2023 — municipality_key_2023","text":"","code":"municipality_key_2023"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2023.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2023 — municipality_key_2023","text":"data frame 309 rows 69 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish tyossakayntial_name_sv Työssäkäyntialue name Swedish tyossakayntial_name_en Työssäkäyntialue name English kela_vakuutuspiiri_name_fi Kelan vakuutuspiiri name Finnish (Insurance District) kela_vakuutuspiiri_code Kelan vakuutuspiiri unofficial code (Insurance District) kela_vakuutuspiiri_name_sv Kelan vakuutuspiiri name Swedish (Insurance District) kela_vakuutuspiiri_name_en Kelan vakuutuspiiri name English (Insurance District) kela_asumistukialue_name_fi Kelan asumistuen kuntaryhmät name Finnish (Municipality categories housing allowance) kela_asumistukialue_code Kelan asumistuen kuntaryhmät unofficial code (Municipality categories housing allowance) kela_asumistukialue_name_sv Kelan asumistuen kuntaryhmät name Swedish (Municipality categories housing allowance) kela_asumistukialue_name_en Kelan asumistuen kuntaryhmät name English (Municipality categories housing allowance) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2023.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2023 — municipality_key_2023","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform a wfs_api object into a sf object. — to_sf","title":"Transform a wfs_api object into a sf object. — to_sf","text":"Statistics Finland WFS API response object's XML (GML) content temporarily written disk immediately read back sf object.","code":""},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform a wfs_api object into a sf object. — to_sf","text":"","code":"to_sf(api_obj)"},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform a wfs_api object into a sf object. — to_sf","text":"api_obj wfs api object","code":""},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform a wfs_api object into a sf object. — to_sf","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform a wfs_api object into a sf object. — to_sf","text":"internal use, exported.","code":""},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Transform a wfs_api object into a sf object. — to_sf","text":"Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":null,"dir":"Reference","previous_headings":"","what":"WFS API — wfs_api","title":"WFS API — wfs_api","text":"Requests various WFS API.","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WFS API — wfs_api","text":"","code":"wfs_api(base_url = \"http://geo.stat.fi/geoserver/wfs\", queries)"},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WFS API — wfs_api","text":"base_url string Api base url queries list List query parameters","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WFS API — wfs_api","text":"wfs_api (S3) object following attributes: content XML payload. path path provided get resonse. response original response object.","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"WFS API — wfs_api","text":"Make request spesific WFS API. base url http://geo.stat.fi/geoserver/wfs components defined arguments appended. low-level function intended used higher level functions package. Note GET requests used using httpcache meaning requests cached. want clear cache, use httpcache::clearCache(). turn cache completely, use httpcache::cacheOff()","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"WFS API — wfs_api","text":"Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WFS API — wfs_api","text":"","code":"wfs_api(base_url = \"http://geo.stat.fi/geoserver/wfs\", queries = append(list(\"service\" = \"WFS\", \"version\" = \"1.0.0\"), list(request = \"getFeature\", layer = \"tilastointialueet:kunta4500k_2017\"))) #> Requesting response from: http://geo.stat.fi/geoserver/wfs?service=WFS&version=1.0.0&request=getFeature&layer=tilastointialueet%3Akunta4500k_2017 #> $url #> [1] \"http://geo.stat.fi/geoserver/wfs?service=WFS&version=1.0.0&request=getFeature&layer=tilastointialueet%3Akunta4500k_2017\" #> #> $response #> Response [http://geo.stat.fi/geoserver/wfs?service=WFS&version=1.0.0&request=getFeature&layer=tilastointialueet%3Akunta4500k_2017] #> Date: 2023-10-31 09:10 #> Status: 200 #> Content-Type: text/xml;charset=UTF-8 #> Size: 450 B #> #> version=\"1.2.0\" #> xmlns=\"http://www.opengis.net/ogc\" #> xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" #> xsi:schemaLocation=\"http://www.opengis.net/ogc http://schemas.opengis.net/... #> #> The query should specify either typeName, featureId filter, or a stored... #> #> $content #> {xml_document} #> #> [1] \\n The query should s ... #> #> attr(,\"class\") #> [1] \"wfs_api\""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-1010","dir":"Changelog","previous_headings":"","what":"geofi 1.0.10","title":"geofi 1.0.10","text":"Examples vignettes use pxweb-data Statistical Finland changed use Sotkanet instead due stable api","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-109","dir":"Changelog","previous_headings":"","what":"geofi 1.0.9","title":"geofi 1.0.9","text":"CRAN release: 2023-04-16 2023 regional classifications updated. Two classifications: University Hospital specific catchment area (Erva-alue) Hospital District (sairaanhoitopiirit) dropped longer operation replaced wellbeing service counties (hyvinvointialueet)","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-108","dir":"Changelog","previous_headings":"","what":"geofi 1.0.8","title":"geofi 1.0.8","text":"CRAN release: 2023-02-16 Links vignettes pointing Statistics Finland database updated match new naming scheme.","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-107","dir":"Changelog","previous_headings":"","what":"geofi 1.0.7","title":"geofi 1.0.7","text":"CRAN release: 2022-10-23 Links vignettes pinting Statistics Finland database started pxnet2.stat.fi changed start pxdata.stat.fi match stat.fi new naming scheme.","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-106","dir":"Changelog","previous_headings":"","what":"geofi 1.0.6","title":"geofi 1.0.6","text":"CRAN release: 2022-01-30 content variables municipality keys related hyvinvointialue (Wellbeing Service Counties) changed matches now classification Statistics Finland New function get_municipality_pop() added getting population numbers spatial data Finnish municipalities years 2010-2020 Function get_zipcodes() new argument extend_to_sea_areas case need spatial data extend coastline","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-105","dir":"Changelog","previous_headings":"","what":"geofi 1.0.5","title":"geofi 1.0.5","text":"CRAN release: 2021-10-30 English names wellbeing services counties corrected New ropengov template added website","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-104","dir":"Changelog","previous_headings":"","what":"geofi 1.0.4","title":"geofi 1.0.4","text":"CRAN release: 2021-08-18 new regional classification: upcoming Wellbeing services counties, added municipality keys files","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-103","dir":"Changelog","previous_headings":"","what":"geofi 1.0.3","title":"geofi 1.0.3","text":"CRAN release: 2021-07-01 new convert_municipality_key_codes-function can used convert regional codes -board municipality key data sets variable width characters originally provided Statistics Finland new codes_as_characters argument added get_municipalities-function uses convert_municipality_key_codes-function convert region codes characters variable widths. Defaults FALSE examples vignettes use suggested package now conditional availability package tricolore vignette removed due complex dependencies","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-102","dir":"Changelog","previous_headings":"","what":"geofi 1.0.2","title":"geofi 1.0.2","text":"CRAN release: 2021-06-07 examples vignettes use pxweb-data Statistical Finland fixed match changed data structure http -> https changes documentation urls","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-101","dir":"Changelog","previous_headings":"","what":"geofi 1.0.1","title":"geofi 1.0.1","text":"CRAN release: 2021-03-29 duplicated municipalities removed municipality keys year 2016 tricolore_tutorial.Rmd vignette now provides proper method producing final map","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-100","dir":"Changelog","previous_headings":"","what":"geofi 1.0.0","title":"geofi 1.0.0","text":"CRAN release: 2021-02-25 first CRAN release compatibility 2021 mucipality zipcode divide new onboard dataset municipality central locations municipality_central_localities api tests compatible httptest v4.0.0 vignettes restructured","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-01-development-version","dir":"Changelog","previous_headings":"","what":"geofi 0.1 (development version)","title":"geofi 0.1 (development version)","text":"Reboot gisfin, package renamed geofi.","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"new-features-0-1","dir":"Changelog","previous_headings":"","what":"New features","title":"geofi 0.1 (development version)","text":"WFSs (provider, URL, version) now listed inst/extdata/wfs_providers.yaml. separation data code hopefully makes easier manage data use consistently different parts package (e.g. actual code tests). Package internally, data parsed environment wfs_providers. get_municipalities() get_zipcodes() can now pass extra-arguments (...) underlying get_wfs_layer(). Basic testing harness place using testthat httptest.","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"development-related-0-1","dir":"Changelog","previous_headings":"","what":"Development related","title":"geofi 0.1 (development version)","text":"Municipal key rda files data dir now saved compress = \"bzip2\" reduce size rda files. Decreased version number 0.1.0.9004 new package now. Decreased R version requirement 3.5.0 check complaining previous version number (3.5.2). DESCRIPTION now defines knitr VignetteEngine package.","code":""}] +[{"path":"https://ropengov.github.io/geofi/articles/Publications-using-the-geofi-R-package.html","id":"articles-citing-the-geofi-package","dir":"Articles","previous_headings":"","what":"Articles citing the geofi package","title":"Publications using the geofi R package","text":"Räsänen, T., Miettinen, ., Mustonen, J., Saarikallio-Torp, M. & Österbacka, E. (2023). Lasten yksityisen hoidon tuen kaksi vuosikymmenta, Työpapereita 174. Helsinki: Kela. http://urn.fi/URN:NBN:fi-fe2022121672077 Kokko, M., Wikman, E., Hyvärinen, . & Reinikainen, L. (2022). Apteekkien tilinpäätösanalyysi vuosilta 2017–2020, Lääkealan turvallisuus- ja kehittämiskeskus Fimea: Fimea kehittää, arvioi ja informoi, 10/2022. Kuopio: Lääkealan turvallisuus- ja kehittämiskeskus Fimea. https://urn.fi/URN:ISBN:978-952-7299-40-1 Reinikainen, L., Hyvärinen, ., Kokko, M., Jauhonen, H. M. & Happonen, P. (2021). Apteekkien tilinpäätösanalyysi vuosilta 2016–2019, Fimea kehittää, arvioi ja informoi, 7/2021. Kuopio: Lääkealan turvallisuus- ja kehittämiskeskus Fimea. https://urn.fi/URN:ISBN:978-952-7299-22-7 Vuori, M. (2020). ADHD-lääkkeiden käytön yleisyys pojilla ja tytöillä sairaanhoitopiireissä ja kunnissa vuonna 2018 (Prevalence ADHD medication use among boys girls hospital districts municipalities, 2018), Lääkärilehti, 75(22). Helsinki: Suomen lääkäriliitto. URL: https://www.laakarilehti.fi/tieteessa/alkuperaistutkimukset/adhd-laakkeiden-kayton-yleisyys-pojilla-ja-tytoilla-sairaanhoitopiireissa-ja-kunnissa-vuonna-2018/","code":""},{"path":"https://ropengov.github.io/geofi/articles/Publications-using-the-geofi-R-package.html","id":"other-writings-using-the-geofi-package","dir":"Articles","previous_headings":"","what":"Other writings using the geofi package","title":"Publications using the geofi R package","text":"Oksanen, J. (2021). Semparl – Cities parliament, Helsinki Digital Humanities Hackathon. URL: https://dhhackathon.wordpress.com/2021/05/28/semparl-cities--parliament/","code":""},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"municipality-keys","dir":"Articles","previous_headings":"","what":"Municipality keys","title":"Datasets in geofi-package","text":"Official administrative regions Finland based municipalities. 2021 309 municipalities Finland number decreasing time mergers. municipality belongs higher level regional classifications regions (maakunta) health care districts (sairaanhoitopiiri). municipality_key_-datasets based Statistics Finland Statistical classification -api modification provided yearly basis. Looking names `municipality_key_2023` 69 different variables municipality. municipality keys can easily aggregate municipalities plotting can list different regional breakdowns. Municipality keys joined municipality spatial data default, meaning data returned get_municipality() can aggregated .","code":"library(geofi) library(dplyr) d <- data(package = \"geofi\") as_tibble(d$results) %>% select(Item,Title) %>% filter(grepl(\"municipality_key\", Item)) #> # A tibble: 12 × 2 #> Item Title #> #> 1 municipality_key Aggregated municipality key table for years 2013-2023 #> 2 municipality_key_2013 Municipality key table for 2013 #> 3 municipality_key_2014 Municipality key table for 2014 #> 4 municipality_key_2015 Municipality key table for 2015 #> 5 municipality_key_2016 Municipality key table for 2016 #> 6 municipality_key_2017 Municipality key table for 2017 #> 7 municipality_key_2018 Municipality key table for 2018 #> 8 municipality_key_2019 Municipality key table for 2019 #> 9 municipality_key_2020 Municipality key table for 2020 #> 10 municipality_key_2021 Municipality key table for 2021 #> 11 municipality_key_2022 Municipality key table for 2022 #> 12 municipality_key_2023 Municipality key table for 2023 names(geofi::municipality_key_2023) #> [1] \"kunta\" \"municipality_name_fi\" #> [3] \"municipality_name_sv\" \"municipality_name_en\" #> [5] \"avi_code\" \"avi_name_fi\" #> [7] \"avi_name_sv\" \"avi_name_en\" #> [9] \"ely_code\" \"ely_name_fi\" #> [11] \"ely_name_sv\" \"ely_name_en\" #> [13] \"kielisuhde_code\" \"kielisuhde_name_fi\" #> [15] \"kielisuhde_name_sv\" \"kielisuhde_name_en\" #> [17] \"kuntaryhmitys_code\" \"kuntaryhmitys_name_fi\" #> [19] \"kuntaryhmitys_name_sv\" \"kuntaryhmitys_name_en\" #> [21] \"maakunta_code\" \"maakunta_name_fi\" #> [23] \"maakunta_name_sv\" \"maakunta_name_en\" #> [25] \"seutukunta_code\" \"seutukunta_name_fi\" #> [27] \"seutukunta_name_sv\" \"seutukunta_name_en\" #> [29] \"year\" \"suuralue_code\" #> [31] \"suuralue_name_fi\" \"suuralue_name_sv\" #> [33] \"suuralue_name_en\" \"nuts1_code\" #> [35] \"nuts1_name_fi\" \"nuts1_name_sv\" #> [37] \"nuts1_name_en\" \"nuts2_code\" #> [39] \"nuts2_name_fi\" \"nuts2_name_sv\" #> [41] \"nuts2_name_en\" \"nuts3_code\" #> [43] \"nuts3_name_fi\" \"nuts3_name_sv\" #> [45] \"nuts3_name_en\" \"tyossakayntial_code\" #> [47] \"tyossakayntial_name_fi\" \"vaalipiiri_code\" #> [49] \"vaalipiiri_name_fi\" \"vaalipiiri_name_sv\" #> [51] \"vaalipiiri_name_en\" \"hyvinvointialue_code\" #> [53] \"hyvinvointialue_name_fi\" \"hyvinvointialue_name_sv\" #> [55] \"hyvinvointialue_name_en\" \"tyossakayntial_name_sv\" #> [57] \"tyossakayntial_name_en\" \"municipality_code\" #> [59] \"kunta_name\" \"name_fi\" #> [61] \"name_sv\" \"kela_vakuutuspiiri_name_fi\" #> [63] \"kela_vakuutuspiiri_code\" \"kela_vakuutuspiiri_name_sv\" #> [65] \"kela_vakuutuspiiri_name_en\" \"kela_asumistukialue_name_fi\" #> [67] \"kela_asumistukialue_code\" \"kela_asumistukialue_name_sv\" #> [69] \"kela_asumistukialue_name_en\" geofi::municipality_key_2023 %>% count(maakunta_code,maakunta_name_fi,maakunta_name_sv,maakunta_name_en) #> # A tibble: 19 × 5 #> maakunta_code maakunta_name_fi maakunta_name_sv maakunta_name_en n #> #> 1 1 Uusimaa Nyland Uusimaa 26 #> 2 2 Varsinais-Suomi Egentliga Finland Southwest Finland 27 #> 3 4 Satakunta Satakunta Satakunta 16 #> 4 5 Kanta-Häme Egentliga Tavastland Kanta-Häme 11 #> 5 6 Pirkanmaa Birkaland Pirkanmaa 23 #> 6 7 Päijät-Häme Päijänne-Tavastland Päijät-Häme 10 #> 7 8 Kymenlaakso Kymmenedalen Kymenlaakso 6 #> 8 9 Etelä-Karjala Södra Karelen South Karelia 9 #> 9 10 Etelä-Savo Södra Savolax South Savo 12 #> 10 11 Pohjois-Savo Norra Savolax North Savo 19 #> 11 12 Pohjois-Karjala Norra Karelen North Karelia 13 #> 12 13 Keski-Suomi Mellersta Finland Central Finland 22 #> 13 14 Etelä-Pohjanmaa Södra Österbotten South Ostrobothn… 18 #> 14 15 Pohjanmaa Österbotten Ostrobothnia 14 #> 15 16 Keski-Pohjanmaa Mellersta Österbotten Central Ostrobot… 8 #> 16 17 Pohjois-Pohjanmaa Norra Österbotten North Ostrobothn… 30 #> 17 18 Kainuu Kajanaland Kainuu 8 #> 18 19 Lappi Lappland Lapland 21 #> 19 21 Ahvenanmaa Åland Åland 16"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"spatial-data","dir":"Articles","previous_headings":"","what":"Spatial data","title":"Datasets in geofi-package","text":"Spatial data provided administrative regions (polygons), population statistical grids (polygons) municipality centers (points).","code":""},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"municipality-borders","dir":"Articles","previous_headings":"Spatial data","what":"Municipality borders","title":"Datasets in geofi-package","text":"Municipality borders provided yearly 2013 two scales 1: 1 000 000 1:4 500 000. Use 1000 4500 value scale-argument, respectively.","code":"municipalities <- get_municipalities(year = 2023, scale = 4500) plot(municipalities[\"municipality_name_fi\"], border = NA)"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"municipality-borders-with-population","dir":"Articles","previous_headings":"Spatial data","what":"Municipality borders with population","title":"Datasets in geofi-package","text":"2022 new data source introduced provides municipality borders municipality population data. Spatial data provided 1:4 500 000 scale. Calling function year = 2019 returns population data 2019-12-31 spatial data borders 2020. statistical variables data : total population (vaesto), share total population (vaesto_p), number men (miehet), men’s share population area (miehet_p) women (naiset), women’s share (naiset_p), aged 15: number (ika_0_14), share (ika_0_14p), aged 15 64: number (ika_15_64), share (ika_15_64p), aged 65 : number (ika_65_), share (ika_65_p). plot men’s share municipality level 2020 (2021 municipality borders) can simply . Aggregating absolute population numbers straightforward: plot population Wellbeing service county level can . plot men’s share wellbeing service country level add one step","code":"get_municipality_pop(year = 2022) %>% subset(select = miehet_p) %>% plot() get_municipality_pop(year = 2022) %>% group_by(hyvinvointialue_name_fi) %>% summarise(vaesto = sum(vaesto)) %>% select(vaesto) %>% plot() get_municipality_pop(year = 2022) %>% dplyr::group_by(hyvinvointialue_name_fi) %>% summarise(vaesto = sum(vaesto), miehet = sum(miehet)) %>% mutate(share = miehet/vaesto*100) %>% select(share) %>% plot()"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"zipcodes","dir":"Articles","previous_headings":"Spatial data","what":"Zipcodes","title":"Datasets in geofi-package","text":"Zipcodes provided single resolution 2015.","code":"zipcodes <- get_zipcodes(year = 2023) plot(zipcodes[\"nimi\"], border = NA)"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"statistical-grid","dir":"Articles","previous_headings":"Spatial data","what":"Statistical grid","title":"Datasets in geofi-package","text":"Grid net statistics 1 km x 1 km 5 km x 5km covers whole Finland. grid net includes grid squares Finland. Statistics Finland proprietary grid database provides attribute statistical data grid nets.","code":"stat_grid <- get_statistical_grid(resolution = 5, auxiliary_data = TRUE) plot(stat_grid[\"euref_x\"], border = NA)"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"population-grid","dir":"Articles","previous_headings":"Spatial data","what":"Population grid","title":"Datasets in geofi-package","text":"Number population 1 km x 1 km 5 km x 5 km grids. number population last day reference year (31 December) age group. Data includes inhabited grids. statistical variables data : Total population (vaesto), number men (miehet) women (naiset), 15 year olds (ika_0_14), 15-64 year olds (ika_15_64), aged 65 (ika_65_). number population reported grids 10 inhabitants. See Population grid data. data describes population distribution independent administrative areas (municipal borders). data suitable examination population distribution making various spatial analysis.","code":"pop_grid <- get_population_grid(year = 2018, resolution = 5) plot(pop_grid[\"kunta\"], border = NA)"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"central-localities-of-municipalities","dir":"Articles","previous_headings":"Spatial data","what":"Central localities of municipalities","title":"Datasets in geofi-package","text":"National Land Survey Finland maintains Topological Database contains wide range layers can access locations central localities municipality Finland.","code":"plot(municipality_central_localities[\"teksti\"])"},{"path":"https://ropengov.github.io/geofi/articles/geofi_datasets.html","id":"custom-geofacet-grid-data","dir":"Articles","previous_headings":"","what":"Custom geofacet grid data","title":"Datasets in geofi-package","text":"Ryan Hafen’s blog: geofacet package extends ggplot2 way makes easy create geographically faceted visualizations R. geofacet take data representing different geographic entities apply visualization method data entity, resulting set visualizations laid grid mimics original geographic topology closely possible. geofi-package contains custom grids used various Finnish administrative breakdowns listed . example population data municipality level pulled THL 2000 2022, aggregated levels regions (maakunta) plotted ggplot2 using grid geofi::grid_maakunta.","code":"d <- data(package = \"geofi\") as_tibble(d$results) %>% select(Item,Title) %>% filter(grepl(\"grid\", Item)) %>% print(n = 100) #> # A tibble: 22 × 2 #> Item Title #> #> 1 grid_ahvenanmaa custom geofacet grid for Ahvenanmaa region #> 2 grid_etela_karjala custom geofacet grid for Etelä-Karjala region as in 2… #> 3 grid_etela_pohjanmaa custom geofacet grid for Etelä-Pohjanmaa #> 4 grid_etela_savo custom geofacet grid for Etelä-Savo #> 5 grid_hyvinvointialue custom geofacet grid for Wellbeing services counties #> 6 grid_kainuu custom geofacet grid for Kainuu region #> 7 grid_kanta_hame custom geofacet grid for Kanta-Häme region #> 8 grid_keski_pohjanmaa custom geofacet grid for Keski-Pohjanmaa region #> 9 grid_keski_suomi custom geofacet grid for Keski-Suomi region as in 2020 #> 10 grid_kymenlaakso custom geofacet grid for Kymenlaakso region #> 11 grid_lappi custom geofacet grid for Lappi region as in 2020 #> 12 grid_maakunta custom geofacet grid for regions #> 13 grid_paijat_hame custom geofacet grid for Päijät-Häme region #> 14 grid_pirkanmaa custom geofacet grid for Pirkanmaa region #> 15 grid_pohjanmaa custom geofacet grid for Pohjanmaa region #> 16 grid_pohjois_karjala custom geofacet grid for Pohjois-Karjala region #> 17 grid_pohjois_pohjanmaa custom geofacet grid for Pohjois-Pohjanmaa region #> 18 grid_pohjois_savo custom geofacet grid for Pohjois-Savo region #> 19 grid_sairaanhoitop custom geofacet grid for health care districts #> 20 grid_satakunta custom geofacet grid for Satakunta region #> 21 grid_uusimaa custom geofacet grid for Uusimaa region #> 22 grid_varsinais_suomi custom geofacet grid for Varsinais-Suomi region libs <- c(\"sotkanet\",\"geofacet\",\"ggplot2\") if (check_namespaces(pkgs = libs)) { # Let pull population data from THL library(sotkanet) sotkadata <- GetDataSotkanet(indicators = 127, years = 2000:2022) %>% filter(region.category == \"KUNTA\") %>% mutate(municipality_code = as.integer(region.code)) # lets aggregate population data dat <- left_join(geofi::municipality_key_2023 %>% select(-year), sotkadata) %>% group_by(maakunta_code, maakunta_name_fi,year) %>% summarise(population = sum(primary.value, na.rm = TRUE)) %>% na.omit() %>% ungroup() %>% rename(code = maakunta_code, name = maakunta_name_fi) library(geofacet) library(ggplot2) ggplot(dat, aes(x = year, y = population/1000, group = name)) + geom_line() + facet_geo(facets = ~name, grid = grid_maakunta, scales = \"free_y\") + theme(axis.text.x = element_text(size = 6)) + scale_x_discrete(breaks = seq.int(from = 2000, to = 2023, by = 5)) + labs(title = unique(sotkadata$indicator.title.fi), y = \"%\") } else { message(\"'pxweb' not available\") }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_joining_attribute_data.html","id":"municipalities","dir":"Articles","previous_headings":"","what":"Municipalities","title":"Joining attribute data with geofi data","text":"Municipality data provided get_municipalities()-function contains 77 indicators variables 309 municipalities. Variables can used either aggregating data keys joining attribute data.","code":""},{"path":"https://ropengov.github.io/geofi/articles/geofi_joining_attribute_data.html","id":"population-data-from-sotkanet","dir":"Articles","previous_headings":"Municipalities","what":"Population data from Sotkanet","title":"Joining attribute data with geofi data","text":"first example join municipality level indicators Swedish-speaking population year end Sotkanet population data, obvious , municipality names Finnish among regional breakdowns allows us combine data spatial data using municipality_name_fi-variable. Now can plot map showing Share Swedish-speakers population, % Share foreign citizens population, % two panels sharing scale.","code":"library(geofi) muni <- get_municipalities(year = 2023) libs <- c(\"sotkanet\",\"dplyr\",\"tidyr\",\"janitor\",\"ggplot2\") if (check_namespaces(pkgs = libs)) { library(sotkanet) library(dplyr) sotkadata_swedish_speaking_pop <- GetDataSotkanet(indicators = 2433, years = 2000:2022) %>% filter(region.category == \"KUNTA\") %>% mutate(municipality_code = as.integer(region.code)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } if (check_namespaces(pkgs = libs)) { map_data <- right_join(muni, sotkadata_swedish_speaking_pop, by = c(\"municipality_code\" = \"municipality_code\")) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } if (check_namespaces(pkgs = libs)) { library(ggplot2) map_data %>% ggplot(aes(fill = primary.value)) + geom_sf() + labs(title = unique(sotkadata_swedish_speaking_pop$indicator.title.fi)) + theme(legend.position = \"top\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_joining_attribute_data.html","id":"zipcode-level","dir":"Articles","previous_headings":"","what":"Zipcode level","title":"Joining attribute data with geofi data","text":"can download data Paavo (Open data postal code area) using pxweb-package similar manner first example. can join data, must extract numerical postal code postal_code_area-variable.","code":"libs <- c(\"ggplot2\",\"pxweb\",\"janitor\") if (check_namespaces(pkgs = libs)) { library(pxweb) # lets get all zipcodes and all variables pxweb_query_list <- list(\"Postinumeroalue\"=c(\"*\"), \"Tiedot\"=c(\"he_vakiy\"), \"Vuosi\"=c(\"2021\")) px_raw <- pxweb_get(url = \"https://statfin.stat.fi/PXWeb/api/v1/en/Postinumeroalueittainen_avoin_tieto/uusin/paavo_pxt_12ey.px\", query = pxweb_query_list) px_data <- as_tibble( as.data.frame(px_raw, column.name.type = \"text\", variable.value.type = \"text\") ) %>% setNames(janitor::make_clean_names(names(.))) px_data %>% filter(postal_code_area != \"Finland\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } #> # A tibble: 3,027 × 3 #> postal_code_area year inhabitants_total_he #> #> 1 WHOLE COUNTRY 2021 5548241 #> 2 00100 Helsinki keskusta - Etu-Töölö (Helsinki) 2021 17893 #> 3 00120 Punavuori - Bulevardi (Helsinki) 2021 7230 #> 4 00130 Kaartinkaupunki (Helsinki) 2021 1716 #> 5 00140 Kaivopuisto - Ullanlinna (Helsinki) 2021 7845 #> 6 00150 Punavuori - Eira - Hernesaari (Helsinki) 2021 9368 #> 7 00160 Katajanokka (Helsinki) 2021 4932 #> 8 00170 Kruununhaka (Helsinki) 2021 7191 #> 9 00180 Kamppi - Ruoholahti (Helsinki) 2021 14440 #> 10 00190 Suomenlinna (Helsinki) 2021 694 #> # ℹ 3,017 more rows libs <- c(\"ggplot2\",\"pxweb\",\"janitor\") if (check_namespaces(pkgs = libs)) { px_data$posti_alue <- sub(\" .+$\", \"\", px_data$postal_code_area) # Lets join with spatial data and plot the area of each zipcode zipcodes19 <- get_zipcodes(year = 2019) zipcodes_map <- left_join(zipcodes19, px_data) ggplot(zipcodes_map) + geom_sf(aes(fill = inhabitants_total_he), color = alpha(\"white\", 1/3)) + labs(title = \"Total number of inhabitants, 2021\", fill = NULL) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"datasets","dir":"Articles","previous_headings":"","what":"Datasets","title":"Making maps using geofi-package","text":"Lets start latest municipality division get_municipalities() POLYGON data POINT data municipality_central_localities shipped package. come CRS EPSG:3067 can plotted together without manipulation.","code":"library(geofi) polygon <- get_municipalities(year = 2021, scale = 4500) point <- geofi::municipality_central_localities # municipality code into integer point$municipality_code <- as.integer(point$kuntatunnus) library(sf) # for spatial data operations later"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"r-packages-for-static-maps","dir":"Articles","previous_headings":"","what":"R-packages for static maps","title":"Making maps using geofi-package","text":"two main technologies creating static graphics R: base ggplot2. can used plot spatial data ie. create maps. addition, tmap : thematic maps R great tool want dig deeper cartography R. base ggplot2 tmap tmap versatile library creating static thematic maps R. supports sf-class objects fully compatible geospatial data available geofi. fluent using ggplot2 complex examples using ggplot2-package.","code":"# dev.off() plot(st_geometry(polygon[\"municipality_code\"])) plot(polygon[\"municipality_code\"], add = TRUE, border=\"white\") plot(st_geometry(point[\"municipality_code\"]), add = TRUE, color = \"black\") libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { library(ggplot2) ggplot() + geom_sf(data = polygon, aes(fill = municipality_code)) + geom_sf(data = point) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"static-maps-using-ggplot2","dir":"Articles","previous_headings":"","what":"Static maps using ggplot2","title":"Making maps using geofi-package","text":"ggplot2-packages three sf-class spesific functions: geom_sf plotting points, lines polygons, geom_sf_text geom_sf_label labeling maps. following examples using Uusimaa region Southern Finland.","code":"libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { library(dplyr) polygon_uusimaa <- polygon %>% filter(maakunta_name_fi %in% \"Uusimaa\") point_uusimaa <- point %>% filter(municipality_code %in% polygon_uusimaa$municipality_code) ggplot() + theme_light() + geom_sf(data = polygon_uusimaa, alpha = .3) + geom_sf(data = point_uusimaa) + geom_sf_text(data = point_uusimaa, aes(label = teksti)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"label-overlapping","dir":"Articles","previous_headings":"Static maps using ggplot2","what":"Label overlapping","title":"Making maps using geofi-package","text":"geom_sf_label geom_sf_text control overlapping labels common issue mapping objects various shapes sizes. ggrepel can solve problem though requires bit spatial data processing sf-package.","code":"libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { ggplot() + theme_light() + geom_sf(data = polygon_uusimaa, alpha = .3) + geom_sf(data = point_uusimaa) + ggrepel::geom_text_repel(data = point_uusimaa %>% sf::st_set_geometry(NULL) %>% bind_cols(point_uusimaa %>% sf::st_centroid() %>% sf::st_coordinates() %>% as_tibble()), aes(label = teksti, x = X, y = Y)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"faceting","dir":"Articles","previous_headings":"Static maps using ggplot2","what":"Faceting","title":"Making maps using geofi-package","text":"want present multiple variables regions can use facets.","code":""},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"facetting-and-combining-maps","dir":"Articles","previous_headings":"Static maps using ggplot2","what":"Facetting and combining maps","title":"Making maps using geofi-package","text":"Facetting useful way present data multiple variables covering region. useful approach , lets say, data indicator two different time points want separate maps separate times points, shared scale. create random data two year titled population plot data using facet_wrap()-function. However, often indicators want compare either different values (shared scale ideal), aggregated differently cover non-overlapping geographic region. may find patchwork useful example .","code":"pop_data <- bind_rows( tibble( municipality_code = polygon$municipality_code ) %>% mutate(population = rnorm(n = nrow(.), mean = 2000, sd = 250), time = 2020), tibble( municipality_code = polygon$municipality_code ) %>% mutate(population = rnorm(n = nrow(.), mean = 2000, sd = 250), time = 2021) ) pop_data #> # A tibble: 618 × 3 #> municipality_code population time #> #> 1 5 2033. 2020 #> 2 9 1964. 2020 #> 3 10 1834. 2020 #> 4 16 2084. 2020 #> 5 18 1295. 2020 #> 6 19 2018. 2020 #> 7 20 1555. 2020 #> 8 35 1880. 2020 #> 9 43 2016. 2020 #> 10 46 1404. 2020 #> # ℹ 608 more rows pop_map <- right_join(polygon, pop_data) libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { ggplot(pop_map, aes(fill = population)) + geom_sf() + facet_grid(~time) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } libs <- c(\"ggplot2\",\"patchwork\") if (check_namespaces(pkgs = libs)) { library(patchwork) p_municipalities <- ggplot(polygon, aes(fill = municipality_code)) + geom_sf() + theme(legend.position = \"top\") p_regions <- ggplot(polygon %>% count(maakunta_code), aes(fill = maakunta_code)) + geom_sf() + theme(legend.position = \"top\") p_uusimaa <- ggplot(polygon_uusimaa, aes(fill = municipality_code)) + geom_sf() + theme(legend.position = \"top\") (p_municipalities | p_regions) / p_uusimaa + plot_layout(nrow = 2, heights = c(1,0.6)) + plot_annotation(title = \"Combining multiple maps into a single (gg)plot\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"aesthetics","dir":"Articles","previous_headings":"Static maps using ggplot2","what":"Aesthetics","title":"Making maps using geofi-package","text":"Creating informative aesthetically pleasing maps always challenge recipe instant success. Colors important colorbrewer2.org can help . ggplot2 can use colorbrewer-palettes scale_fill_brewer, scale_fill_distiller, scale_fill_fermenter -functions. may want get rid grid well axis-labels -titles.","code":"libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { ggplot(polygon_uusimaa, aes(fill = municipality_code)) + geom_sf(color = alpha(\"white\", 1/3)) + scale_fill_fermenter(palette = \"YlGnBu\") + theme_minimal() + theme(axis.text = element_blank(), axis.title = element_blank(), panel.grid = element_blank(), legend.position = \"top\" ) + labs(title = \"Municipality code\", fill = NULL) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_making_maps.html","id":"interactive-maps","dir":"Articles","previous_headings":"","what":"Interactive maps","title":"Making maps using geofi-package","text":"interactive maps Leaflet option. exploring datasets almost CRS try mapview. larger datasets, probably safer WebGL based mapdeck. , experienced leaflet following example using leaflet. Leaflet default projection EPSG:3857 WGS84, also known “Google Mercator” “Web Mercator, reproject geofi data plot using leaflet.","code":"libs <- c(\"leaflet\") if (check_namespaces(pkgs = libs)) { polygon_wgs84 <- sf::st_transform(x = polygon, crs = \"+proj=longlat +datum=WGS84\") point_wgs84 <- sf::st_transform(x = point, crs = \"+proj=longlat +datum=WGS84\") library(leaflet) # lets create a palette for polygon fill (municipality codes) pal <- leaflet::colorNumeric(palette = \"Blues\", domain = polygon_wgs84$municipality_code) # labels for localities labels <- sprintf( \"%s<\/strong> (%s)\", point_wgs84$teksti, point_wgs84$kuntatunnus ) %>% lapply(htmltools::HTML) # popup for polygons popup <- sprintf( \"%s<\/strong> (%s)\", polygon_wgs84$municipality_name_fi, polygon_wgs84$municipality_code ) %>% lapply(htmltools::HTML) EPSG3067 <- leaflet::leafletCRS(crsClass = \"L.Proj.CRS\", code = \"EPSG:3067\", proj4def = \"+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs\", resolutions = 1.5^(25:15)) leaflet(polygon_wgs84, options = leafletOptions(worldCopyJump = F, crs = EPSG3067)) %>% addProviderTiles(provider = providers$CartoDB.Positron) %>% addPolygons(fillColor = ~pal(municipality_code), color = \"black\", weight = 1, opacity = 1, dashArray = \"3\", fillOpacity = 0.4, popup = popup, highlight = highlightOptions( weight = 2, color = \"#666\", dashArray = \"\", fillOpacity = 0.4, bringToFront = TRUE) ) %>% addMarkers(data = point_wgs84, label = labels, clusterOptions = markerClusterOptions(), labelOptions = labelOptions(opacity = .7, style = list(\"font-weight\" = \"normal\", padding = \"2px 4px\"), textsize = \"12px\", direction = \"auto\")) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"coordinate-reference-systems","dir":"Articles","previous_headings":"","what":"Coordinate reference systems","title":"Spatial data manipulation and analysis R and geofi-package","text":"book , look chapter Coordinate Systems R first. using spatial data R necessary data coordinate reference system (CRS). can check CRS sf-object sf::st_crs()-function. data can obtain using geofi transformed automatically EPSG:3067. spatial data providers Finland provide data CRS. However, sometimes data correctly projected reproject using st_transform. Web maps like Google maps Leaflet use WGS 1984 geographic (long/lat) coordinate system fine added interactive feature, avoided plotting data maps elsewhere. especially case large northern countries like Finland. demonstrate effect lets reproject municipality data WGS 1984 (usin EPSG code equivalent 4326) plot side side EPSG:3067 can see northern Finland larger right grid different.","code":"library(geofi) library(sf) library(dplyr) muni <- get_municipalities() point <- municipality_central_localities crs <- st_crs(muni) crs$input #> [1] \"EPSG:3067\" muni_4326 <- st_transform(muni, \"EPSG:4326\") crs <- st_crs(muni_4326) crs$input #> [1] \"EPSG:4326\" libs <- c(\"ggplot2\",\"patchwork\") if (check_namespaces(pkgs = libs)) { library(ggplot2) p1 <- ggplot(muni %>% st_union()) + geom_sf() + labs(subtitle = \"EPSG:3067\") p2 <- ggplot(muni_4326 %>% st_union()) + geom_sf() + labs(subtitle = \"EPSG:4326\") library(patchwork) wrap_plots(list(p1,p2), nrow = 1) + plot_annotation(title = \"Map of Finland in two different CRS\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"area","dir":"Articles","previous_headings":"","what":"Area","title":"Spatial data manipulation and analysis R and geofi-package","text":"compute area polygons (municipality case), ordering size plotting largest/smalles 10 can .","code":"libs <- c(\"ggplot2\") if (check_namespaces(pkgs = libs)) { # compute area muni$area <- sf::st_area(muni) # largest muni %>% arrange(desc(area)) %>% slice(1:10) %>% ggplot() + geom_sf() + geom_sf_label(aes(label = name_fi)) + labs(title = \"largest 10\") # smallest muni %>% arrange(area) %>% slice(1:10) %>% ggplot() + geom_sf() + geom_sf_label(aes(label = name_fi)) + labs(title = \"smallest 10\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"subsetting","dir":"Articles","previous_headings":"","what":"Subsetting","title":"Spatial data manipulation and analysis R and geofi-package","text":"can subset data plotting subsetting data conventional filtering codes/names, can use geometric operations bounding box intersection. Lets imagine need detailed view metropolitan area Greater Helsinki consist following municipalities: Espoo, Helsinki, Vantaa, Hyvinkää, Järvenpää, Kauniainen, Kerava, Kirkkonummi, Mäntsälä, Nurmijärvi, Pornainen, Sipoo, Tuusula Vihti. can subset data just using names municipalities.","code":"greater_helsinki <- c('Espoo','Helsinki','Vantaa','Hyvinkää', 'Järvenpää','Kauniainen','Kerava','Kirkkonummi', 'Mäntsälä','Nurmijärvi','Pornainen','Sipoo','Tuusula','Vihti') greater_helsinki_polygon <- muni %>% filter(municipality_name_fi %in% greater_helsinki) if (check_namespaces(pkgs = libs)) { ggplot(greater_helsinki_polygon) + geom_sf() + geom_sf(data = point %>% filter(teksti %in% toupper(greater_helsinki))) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"subsetting-using-bounding-boxes","dir":"Articles","previous_headings":"Subsetting","what":"Subsetting using bounding boxes","title":"Spatial data manipulation and analysis R and geofi-package","text":"First, let’s create bounding box greater Helsinki polygons. , let’s use point data (municipality central localities) create bounding box","code":"bounding_box_polygon <- st_as_sfc(st_bbox(muni %>% filter(municipality_name_fi %in% greater_helsinki))) if (check_namespaces(pkgs = libs)) { ggplot(st_intersection(bounding_box_polygon, muni)) + geom_sf() + geom_sf(data = point %>% filter(teksti %in% toupper(greater_helsinki))) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } bounding_box_point <- st_as_sfc(st_bbox(point %>% filter(teksti %in% toupper(greater_helsinki)))) if (check_namespaces(pkgs = libs)) { ggplot(st_intersection(bounding_box_point, muni)) + geom_sf() + geom_sf(data = point %>% filter(teksti %in% toupper(greater_helsinki))) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"subsetting-neigbours","dir":"Articles","previous_headings":"Subsetting","what":"Subsetting neigbours","title":"Spatial data manipulation and analysis R and geofi-package","text":"Neighboring intersecting objects can found using st_intersection() following manner plot Helsinki ’s neighbors.","code":"helsinki <- muni %>% filter(municipality_name_fi == \"Helsinki\") neigbour_codes <- st_intersection(muni,helsinki) %>% pull(municipality_code) if (check_namespaces(pkgs = libs)) { ggplot(muni %>% filter(municipality_code %in% neigbour_codes)) + geom_sf() + geom_sf_label(aes(label = municipality_name_fi)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"dissolving-polygons-union","dir":"Articles","previous_headings":"","what":"Dissolving polygons (Union)","title":"Spatial data manipulation and analysis R and geofi-package","text":"Often need create alternative regional breakdown existing ones aggregating data accordingly. First need subset required members dissolve using st_union(). classify municipalities three equal size categories based area, dissolve plot. Lets first plot smallest category single multipolygon. union three data can use group_by summarise","code":"muni$area_class <- cut_number(x = as.numeric(muni$area), n = 3) # # if (check_namespaces(pkgs = libs)) { muni %>% filter(area_class == levels(muni$area_class)[1]) %>% st_union() %>% ggplot() + geom_sf() } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } if (check_namespaces(pkgs = libs)) { muni %>% group_by(area_class) %>% summarise() %>% ggplot() + geom_sf(aes(fill = area_class)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"centroids-buffers-grids-and-voronois","dir":"Articles","previous_headings":"","what":"Centroids, buffers, grids and voronois","title":"Spatial data manipulation and analysis R and geofi-package","text":"following operarions derive Marko Kallio’s course CSC February 2020 Spatial data analysis R.","code":""},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"polygon-centroids","dir":"Articles","previous_headings":"Centroids, buffers, grids and voronois","what":"Polygon centroids","title":"Spatial data manipulation and analysis R and geofi-package","text":"geofi contains data municipality central locations (geofi::municipality_central_localities). Instead may need actual geographical centers ie. centroids polygon can computed using st_centroid plotted ggplot.","code":"muni_centroids <- st_centroid(muni) if (check_namespaces(pkgs = libs)) { ggplot() + geom_sf(data = muni) + geom_sf(data = muni_centroids, color = \"blue\") + # plot also the municipality_central_localities geom_sf(data = municipality_central_localities, color = \"red\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"buffers","dir":"Articles","previous_headings":"Centroids, buffers, grids and voronois","what":"Buffers","title":"Spatial data manipulation and analysis R and geofi-package","text":"Buffers can useful, instance, calculating share buildings within certain radius central localities. example explained , show create 15km radius around polygon centroids.","code":"muni_centroids_buffer <- muni_centroids %>% st_buffer(dist = 15000) if (check_namespaces(pkgs = libs)) { ggplot() + geom_sf(data = muni) + geom_sf(data = muni_centroids_buffer) + geom_sf(data = muni_centroids, shape = 3) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"creating-regular-grids","dir":"Articles","previous_headings":"Centroids, buffers, grids and voronois","what":"Creating regular grids","title":"Spatial data manipulation and analysis R and geofi-package","text":"can download predefined grids Statistics Finland using get_statistical_grid get_population_grid() -functions geofi-package. data contains just geographical shape, also attribute data population etc. within grid cells. However, may need create custom grid, instance aggregate point data, can created st_make_grid() function. describes Marko Kallio Spatial data analysis R. creates regular grid bounding box ‘sf’ object. Can given certain cell size, number cells x y directions. ‘’ tells function kind regular grid wanted (polygons, corners, centers). Fishnets lines rather polygons can created simply casting polygons “LINESTRING”s. resulting polygon grid ‘sfc’ object, needs made ‘sf’ order us add ID-attribute. example pick northern Muonio municipality create custom 2km*4km grid top . Afterward aggregate number reindeer grid cell data.","code":"muonio <- muni %>% filter(municipality_name_fi == \"Muonio\") grid_sf <- st_make_grid(muonio, cellsize = c(2000,4000), what=\"polygons\") %>% st_sf() grid_clip <- st_intersection(grid_sf, muonio) grid_clip$rank <- 1:nrow(grid_clip) if (check_namespaces(pkgs = libs)) { ggplot(grid_clip) + geom_sf(aes(fill = rank), color = alpha(\"white\", 1/3), size = 3) + scale_fill_viridis_c() + theme_minimal() } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"voronoi-polygons","dir":"Articles","previous_headings":"Centroids, buffers, grids and voronois","what":"Voronoi polygons","title":"Spatial data manipulation and analysis R and geofi-package","text":"mathematics, Voronoi diagram partition plane regions close given set objects. Source: Wikipedia: Voronoi diagram Perhaps useful operation, worth taking look readily available sf function st_voronoi. case, creates layer polygons closest municipality central locality.","code":"library(geofi) library(sf) muni_voronoi <- municipality_central_localities %>% st_union() %>% st_voronoi() %>% st_cast() %>% st_sf() %>% st_intersection(st_union(muni)) %>% mutate(rnk = 1:nrow(.)) if (check_namespaces(pkgs = libs)) { ggplot(muni_voronoi) + geom_sf(aes(fill = rnk)) + geom_sf(data = municipality_central_localities, shape = 4) + scale_fill_fermenter(palette = \"YlGnBu\") + theme_minimal() + theme(axis.text = element_blank(), axis.title = element_blank(), panel.grid = element_blank(), legend.position = \"none\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/articles/geofi_spatial_analysis.html","id":"calculating-distances","dir":"Articles","previous_headings":"","what":"Calculating distances","title":"Spatial data manipulation and analysis R and geofi-package","text":"Calculating distances certainly core geospatial analysis. exercise interested calculating distances municipality central localities Finland. expected, talking great circle distances , ie. crow flies type distances. can calculate distance matrices using st_distance()-function sf-package computes distances pairs geometries. geofi-package contains internal data municipality_central_localities use calculate distances points. First need subset data replace original municipality name column (teksti) better latest municipality key. Let’s aim data structure municipality name code origin destination. get lets create loop calculates distance matrices municipality municipalities, assign data list finally bind data frames single data. Finally can draw two plots verify results. First let’s draw bar plot 20 municipality central localities nearest Helsinki , lets find municipality central locality nearest center Finland. finally lets draw bar plot 20 furthest localities last, need show distances also map.","code":"kunta <- geofi::municipality_central_localities %>% select(teksti,kuntatunnus) %>% mutate(kuntatunnus = as.integer(kuntatunnus)) %>% select(-teksti) %>% left_join(geofi::municipality_key_2022 %>% select(municipality_code, municipality_name_fi), by = c(\"kuntatunnus\" = \"municipality_code\")) %>% rename(teksti = municipality_name_fi) kunta #> Simple feature collection with 311 features and 2 fields #> Geometry type: POINT #> Dimension: XY #> Bounding box: xmin: 91954.76 ymin: 6638646 xmax: 701036.8 ymax: 7755601 #> Projected CRS: ETRS89 / TM35FIN(E,N) #> First 10 features: #> kuntatunnus teksti geometry #> 1 890 Utsjoki POINT (501086.5 7755601) #> 2 498 Muonio POINT (360886 7542117) #> 3 148 Inari POINT (522136.3 7616266) #> 4 47 Enontekiö POINT (362091.4 7589569) #> 5 273 Kolari POINT (362088.2 7471921) #> 6 976 Ylitornio POINT (350962.8 7359884) #> 7 732 Salla POINT (573395.9 7413832) #> 8 698 Rovaniemi POINT (443256 7375804) #> 9 854 Pello POINT (366564.7 7409490) #> 10 320 Kemijärvi POINT (519078 7399655) d_list <- list() kuntadatan_teksti_ja_kuntatunnus <- sf::st_drop_geometry(kunta) %>% select(teksti,kuntatunnus) for (i in 1:nrow(kunta)){ dist_tmp <- sf::st_distance(x = kunta[i,], y = kunta) tibble(origin_name = kunta[i,]$teksti, origin_code = kunta[i,]$kuntatunnus) %>% bind_cols(kuntadatan_teksti_ja_kuntatunnus %>% rename(destination_name = teksti, destination_code = kuntatunnus)) %>% mutate(dist = dist_tmp[1,]) -> d_list[[i]] } kunta_dist <- do.call(\"bind_rows\", d_list) %>% mutate(dist = as.numeric(dist)) head(kunta_dist) #> # A tibble: 6 × 5 #> origin_name origin_code destination_name destination_code dist #> #> 1 Utsjoki 890 Utsjoki 890 0 #> 2 Utsjoki 890 Muonio 498 255404. #> 3 Utsjoki 890 Inari 148 140915. #> 4 Utsjoki 890 Enontekiö 47 216532. #> 5 Utsjoki 890 Kolari 273 315903. #> 6 Utsjoki 890 Ylitornio 976 423236. if (check_namespaces(pkgs = libs)) { ggplot(kunta_dist %>% filter(origin_name == \"Helsinki\") %>% arrange(dist) %>% slice(1:20), aes(x = dist, y = reorder(destination_name, dist), label = round(dist))) + geom_col() + geom_text(aes(x = 1000), color = \"white\", hjust = 0) + labs(title = \"Nearest 20 municipality localities to Helsinki\", x = \"distance in meters\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } # We firt need the country map as a single polygon geofi::get_municipalities() %>% sf::st_union() %>% # then we need to compute the centroid of that polygon sf::st_centroid() -> fin_centroid # The let's find the nearest neighbour with distance <- st_distance(x = fin_centroid, y = kunta) kuntadatan_teksti_ja_kuntatunnus %>% mutate(dist = as.numeric(distance)) %>% arrange(dist) -> closest_to_center head(closest_to_center) #> teksti kuntatunnus dist #> 1 Siikalatva 791 13582.66 #> 2 Pyhäntä 630 17512.41 #> 3 Kärsämäki 317 33270.89 #> 4 Haapavesi 71 38730.91 #> 5 Vaala 785 50150.05 #> 6 Utajärvi 889 61041.41 furthest20 <- kunta_dist %>% filter(origin_name == closest_to_center[1,]$teksti) %>% arrange(desc(dist)) %>% slice(1:20) if (check_namespaces(pkgs = libs)) { ggplot(furthest20, aes(x = dist, y = reorder(destination_name, dist), label = round(dist))) + geom_col() + geom_text(aes(x = 10000), color = \"white\", hjust = 0) + labs(title = paste(\"Furthest 20 municipality localities \\nfrom the most central locality of \", closest_to_center[1,]$teksti), x = \"distance in meters\") } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) } sf_lahto <- kunta %>% filter(teksti %in% closest_to_center[1,]$teksti) %>% select(teksti) sf_paate <- kunta %>% filter(teksti %in% furthest20$destination_name) %>% select(teksti) triplst <- list() for (i in 1:nrow(sf_paate)){ triplst[[i]] <- rbind( sf_lahto, sf_paate[i,] ) %>% summarize(m = mean(row_number()),do_union=FALSE) %>% st_cast(\"LINESTRING\") } trips <- do.call(\"rbind\", triplst) if (check_namespaces(pkgs = libs)) { ggplot() + geom_sf(data = muni %>% st_union(), alpha = .3) + geom_sf(data = trips, color = \"dim grey\") + geom_sf_label(data = sf_lahto, aes(label = teksti)) + geom_sf_text(data = sf_paate, aes(label = teksti)) } else { message(\"One or more of the following packages is not available: \", paste(libs, collapse = \", \")) }"},{"path":"https://ropengov.github.io/geofi/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Markus Kainu. Author, maintainer. Joona Lehtomaki. Author. Juuso Parkkinen. Contributor. Jani Miettinen. Contributor. Pyry Kantanen. Contributor. Sampo Vesanen. Contributor. Leo Lahti. Author.","code":""},{"path":"https://ropengov.github.io/geofi/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"(C) Markus Kainu, Joona Lehtomaki, Juuso Parkkinen, Jani Miettinen, Pyry Kantanen, Sampo Vesanen, Leo Lahti 2015-2023. geofi: Access Finnish Geospatial Data, ","code":"@Manual{, title = {geofi: Access Finnish Geospatial Data}, author = {Markus Kainu and Joona Lehtomaki and Juuso Parkkinen and Jani Miettinen and Pyry Kantanen and Sampo Vesanen and Leo Lahti}, year = {2023}, note = {R package version 1.0.8}, url = {https://github.com/rOpenGov/geofi}, }"},{"path":"https://ropengov.github.io/geofi/index.html","id":"geofi---access-finnish-geospatial-data-","dir":"","previous_headings":"","what":"Access Finnish Geospatial Data","title":"Access Finnish Geospatial Data","text":"Access Finnish Geospatial Data.","code":""},{"path":"https://ropengov.github.io/geofi/index.html","id":"installation-and-use","dir":"","previous_headings":"","what":"Installation and use","title":"Access Finnish Geospatial Data","text":"geofi-package can download geospatial data municipalities, zipcodes population statistical grids Statistics Finland WFS-api. addition, -board municipality keys aggregating municipality-level data higher level regional distributions based Statistics Finland classification API. examples data can access using geofi. Please closer look vignettes comprehensive use cases.","code":"# install from CRAN install.packages(\"geofi\") # Install development version from GitHub remotes::install_github(\"ropengov/geofi\") library(geofi) d1 <- get_municipalities(year = 2023) d2 <- get_zipcodes(year = 2023) d3 <- get_statistical_grid(resolution = 5) d4 <- get_population_grid(resolution = 5) library(ggplot2) library(dplyr) theme_set( theme_minimal(base_family = \"Arial\") + theme(legend.position= \"none\", axis.text = element_blank(), axis.title = element_blank(), panel.grid = element_blank() ) ) p1 <- ggplot(d1, aes(fill = kunta)) + geom_sf(colour = alpha(\"white\", 1/3)) + labs(subtitle = \"municipalities\") p2 <- ggplot(d1 %>% count(maakunta_code), aes(fill = maakunta_code)) + geom_sf(colour = alpha(\"white\", 1/3)) + labs(subtitle = \"Aggregated municipality data \\nat region (maakunta) level \\n(one of many!)\") p3 <- ggplot(d2, aes(fill = as.integer(posti_alue))) + geom_sf(colour = alpha(\"white\", 1/3)) + labs(subtitle = \"zipcodes\") p4 <- ggplot(d3, aes(fill = nro)) + geom_sf(colour = alpha(\"white\", 1/3)) + labs(subtitle = \"statistical grid\") p5 <- ggplot(d4, aes(fill = id_nro)) + geom_sf(colour = alpha(\"white\", 1/3)) + labs(subtitle = \"population grid\") p6 <- ggplot(municipality_central_localities, aes(color = as.integer(kuntatunnus))) + geom_sf() + labs(subtitle = \"Central municipality localities\") library(patchwork) wrap_plots(list(p1,p2,p3,p4,p5,p6), ncol = 3) + patchwork::plot_annotation(title = \"Spatial data in geofi-package\")"},{"path":"https://ropengov.github.io/geofi/index.html","id":"contribute","dir":"","previous_headings":"Installation and use","what":"Contribute","title":"Access Finnish Geospatial Data","text":"Contributions welcome: Use issue tracker feedback bug reports. Send pull requests Star us Github page","code":""},{"path":"https://ropengov.github.io/geofi/index.html","id":"acknowledgements","dir":"","previous_headings":"Installation and use","what":"Acknowledgements","title":"Access Finnish Geospatial Data","text":"Kindly cite work follows: Markus Kainu, Joona Lehtomäki, Juuso Parkkinen, Jani Miettinen, Pyry Kantanen, Leo Lahti Retrieval analysis open geospatial data Finland geofi R package. R package version 1.0.9. URL: https://ropengov.github.io/geofi/ grateful contributors. project part rOpenGov.","code":""},{"path":"https://ropengov.github.io/geofi/reference/check_api_access.html","id":null,"dir":"Reference","previous_headings":"","what":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","title":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","text":"Check R access resources http://geo.stat.fi/geoserver/wfs","code":""},{"path":"https://ropengov.github.io/geofi/reference/check_api_access.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","text":"","code":"check_api_access()"},{"path":"https://ropengov.github.io/geofi/reference/check_api_access.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","text":"logical.","code":""},{"path":"https://ropengov.github.io/geofi/reference/check_api_access.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","text":"Markus Kainu markus.kainu@kapsi.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/check_api_access.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Check access to http://geo.stat.fi/geoserver/wfs — check_api_access","text":"","code":"if (FALSE) { check_api_access() }"},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"Statistics Finland provides numerical codes regions two three digit characters. default, converted integers geofi convenience, can converted back using function.","code":""},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"","code":"convert_municipality_key_codes(muni_key = geofi::municipality_key)"},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"muni_key municipality key geofi-package","code":""},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"tibble codes converted variable length characters provided Statistics Finland","code":""},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"Markus Kainu markus.kainu@kapsi.fi, Pyry Kantanen","code":""},{"path":"https://ropengov.github.io/geofi/reference/convert_municipality_key_codes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Convert regional codes in on-board municipality key data sets into variable length characters — convert_municipality_key_codes","text":"","code":"if (FALSE) { convert_municipality_key_codes(muni_key = geofi::municipality_key) }"},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"Thin wrapper around Finnish zip code areas provided Statistics Finland.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"","code":"get_municipalities(year = 2023, scale = 4500, codes_as_character = FALSE)"},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"year numeric year administrative borders. Available 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 2023. scale scale resolution shape. Two options: 1000 equals 1:1 000 000 4500 equals 1:4 500 000. codes_as_character logical determining region codes returned strings equal width originally provided Statistics Finland instead integers.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"Markus Kainu markus.kainu@kela.fi, Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipalities.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Finnish municipality (multi)polygons for different years and/or scales. — get_municipalities","text":"","code":"if (FALSE) { f <- get_municipalities(year=2016, scale = 4500) plot(f) }"},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"Thin wrapper around Finnish zip code areas provided Statistics Finland.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"","code":"get_municipality_pop(year = 2021, codes_as_character = FALSE)"},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"year numeric year administrative borders. Available 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 2021. codes_as_character logical determining region codes returned strings equal width originally provided Statistics Finland instead integers.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"number population last day reference year combined municipality borders year . Calling function year = 2019 returns population data 2019-12-31 spatial data 2020. statistical variables data : total population (vaesto), share total population (vaesto_p), number men (miehet), men's share population area (miehet_p) women (naiset), women's share (naiset_p), aged 15: number (ika_0_14), share (ika_0_14p), aged 15 64: number (ika_15_64), share (ika_15_64p), aged 65 : number (ika_65_), share (ika_65_p).","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"Markus Kainu markus.kainu@kela.fi, Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_municipality_pop.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Number of population by Finnish municipality (multi)polygons for different years. — get_municipality_pop","text":"","code":"if (FALSE) { f <- get_municipality_pop(year=2020) plot(f) }"},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"Get Finnish Population grid two different resolutions years 2010-2020 Thin wrapper around Finnish population grid data provided Statistics Finland.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"","code":"get_population_grid(year = 2021, resolution = 5)"},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"year numeric year population grid. Years available 2005 2010-2021. resolution 1 (1km x 1km) 5 (5km x 5km)","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"information dataset Paikkatietohakemisto","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"Markus Kainu markus.kainu@kela.fi, Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_population_grid.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Finnish Population grid in two different resolutions for years 2010-2020\nThin wrapper around Finnish population grid data provided by\nStatistics Finland. — get_population_grid","text":"","code":"if (FALSE) { f <- get_population_grid(year=2017) plot(f) }"},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"Thin wrapper around Finnish statistical grid data provided Statistics Finland.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"","code":"get_statistical_grid(resolution = 5, auxiliary_data = FALSE)"},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"resolution integer 1 (1km x 1km) 5 (5km x 5km) auxiliary_data logical Whether include auxiliary data containing municipality membership data. Default FALSE","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"Markus Kainu markus.kainu@kela.fi, Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_statistical_grid.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Statistical grid data polygons at two different resolution — get_statistical_grid","text":"","code":"if (FALSE) { f <- get_statistical_grid(resolution = 5, auxiliary_data = FALSE) plot(f) }"},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"Thin wrapper around Finnish zip code areas provided Statistics Finland.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"","code":"get_zipcodes(year = 2023, extend_to_sea_areas = FALSE)"},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"year numeric year zipcodes. Years available 2015-2023. extend_to_sea_areas logical. Extend data show also sea areas.","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"Markus Kainu markus.kainu@kela.fi, Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/get_zipcodes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Finnish zip code (multi)polygons for different years. — get_zipcodes","text":"","code":"if (FALSE) { f <- get_zipcodes(year=2022) plot(f) }"},{"path":"https://ropengov.github.io/geofi/reference/grid_ahvenanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Ahvenanmaa region — grid_ahvenanmaa","title":"custom geofacet grid for Ahvenanmaa region — grid_ahvenanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_ahvenanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Ahvenanmaa region — grid_ahvenanmaa","text":"","code":"grid_ahvenanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_ahvenanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Ahvenanmaa region — grid_ahvenanmaa","text":"data frame 16 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_karjala.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Etelä-Karjala region as in 2020 — grid_etela_karjala","title":"custom geofacet grid for Etelä-Karjala region as in 2020 — grid_etela_karjala","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_karjala.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Etelä-Karjala region as in 2020 — grid_etela_karjala","text":"","code":"grid_etela_karjala"},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_karjala.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Etelä-Karjala region as in 2020 — grid_etela_karjala","text":"data frame 9 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_pohjanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Etelä-Pohjanmaa — grid_etela_pohjanmaa","title":"custom geofacet grid for Etelä-Pohjanmaa — grid_etela_pohjanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_pohjanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Etelä-Pohjanmaa — grid_etela_pohjanmaa","text":"","code":"grid_etela_pohjanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_pohjanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Etelä-Pohjanmaa — grid_etela_pohjanmaa","text":"data frame 18 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_savo.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Etelä-Savo — grid_etela_savo","title":"custom geofacet grid for Etelä-Savo — grid_etela_savo","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_savo.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Etelä-Savo — grid_etela_savo","text":"","code":"grid_etela_savo"},{"path":"https://ropengov.github.io/geofi/reference/grid_etela_savo.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Etelä-Savo — grid_etela_savo","text":"data frame 12 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_hyvinvointialue.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Wellbeing services counties — grid_hyvinvointialue","title":"custom geofacet grid for Wellbeing services counties — grid_hyvinvointialue","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_hyvinvointialue.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Wellbeing services counties — grid_hyvinvointialue","text":"","code":"grid_hyvinvointialue"},{"path":"https://ropengov.github.io/geofi/reference/grid_hyvinvointialue.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Wellbeing services counties — grid_hyvinvointialue","text":"data frame 23 rows 4 variables: name Wellbeing services county name (hyvinvointialue) Finnish code Wellbeing services counties code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kainuu.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Kainuu region — grid_kainuu","title":"custom geofacet grid for Kainuu region — grid_kainuu","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kainuu.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Kainuu region — grid_kainuu","text":"","code":"grid_kainuu"},{"path":"https://ropengov.github.io/geofi/reference/grid_kainuu.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Kainuu region — grid_kainuu","text":"data frame 8 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kanta_hame.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Kanta-Häme region — grid_kanta_hame","title":"custom geofacet grid for Kanta-Häme region — grid_kanta_hame","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kanta_hame.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Kanta-Häme region — grid_kanta_hame","text":"","code":"grid_kanta_hame"},{"path":"https://ropengov.github.io/geofi/reference/grid_kanta_hame.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Kanta-Häme region — grid_kanta_hame","text":"data frame 11 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_pohjanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Keski-Pohjanmaa region — grid_keski_pohjanmaa","title":"custom geofacet grid for Keski-Pohjanmaa region — grid_keski_pohjanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_pohjanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Keski-Pohjanmaa region — grid_keski_pohjanmaa","text":"","code":"grid_keski_pohjanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_pohjanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Keski-Pohjanmaa region — grid_keski_pohjanmaa","text":"data frame 8 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_suomi.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Keski-Suomi region as in 2020 — grid_keski_suomi","title":"custom geofacet grid for Keski-Suomi region as in 2020 — grid_keski_suomi","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_suomi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Keski-Suomi region as in 2020 — grid_keski_suomi","text":"","code":"grid_keski_suomi"},{"path":"https://ropengov.github.io/geofi/reference/grid_keski_suomi.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Keski-Suomi region as in 2020 — grid_keski_suomi","text":"data frame 22 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kymenlaakso.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Kymenlaakso region — grid_kymenlaakso","title":"custom geofacet grid for Kymenlaakso region — grid_kymenlaakso","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_kymenlaakso.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Kymenlaakso region — grid_kymenlaakso","text":"","code":"grid_kymenlaakso"},{"path":"https://ropengov.github.io/geofi/reference/grid_kymenlaakso.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Kymenlaakso region — grid_kymenlaakso","text":"data frame 6 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_lappi.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Lappi region as in 2020 — grid_lappi","title":"custom geofacet grid for Lappi region as in 2020 — grid_lappi","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_lappi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Lappi region as in 2020 — grid_lappi","text":"","code":"grid_lappi"},{"path":"https://ropengov.github.io/geofi/reference/grid_lappi.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Lappi region as in 2020 — grid_lappi","text":"data frame 21 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_maakunta.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for regions — grid_maakunta","title":"custom geofacet grid for regions — grid_maakunta","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_maakunta.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for regions — grid_maakunta","text":"","code":"grid_maakunta"},{"path":"https://ropengov.github.io/geofi/reference/grid_maakunta.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for regions — grid_maakunta","text":"data frame 19 rows 4 variables: name Region name (maakunta) Finnish code Region code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_paijat_hame.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Päijät-Häme region — grid_paijat_hame","title":"custom geofacet grid for Päijät-Häme region — grid_paijat_hame","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_paijat_hame.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Päijät-Häme region — grid_paijat_hame","text":"","code":"grid_paijat_hame"},{"path":"https://ropengov.github.io/geofi/reference/grid_paijat_hame.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Päijät-Häme region — grid_paijat_hame","text":"data frame 10 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pirkanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Pirkanmaa region — grid_pirkanmaa","title":"custom geofacet grid for Pirkanmaa region — grid_pirkanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pirkanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Pirkanmaa region — grid_pirkanmaa","text":"","code":"grid_pirkanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_pirkanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Pirkanmaa region — grid_pirkanmaa","text":"data frame 23 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Pohjanmaa region — grid_pohjanmaa","title":"custom geofacet grid for Pohjanmaa region — grid_pohjanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Pohjanmaa region — grid_pohjanmaa","text":"","code":"grid_pohjanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Pohjanmaa region — grid_pohjanmaa","text":"data frame 14 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_karjala.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Pohjois-Karjala region — grid_pohjois_karjala","title":"custom geofacet grid for Pohjois-Karjala region — grid_pohjois_karjala","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_karjala.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Pohjois-Karjala region — grid_pohjois_karjala","text":"","code":"grid_pohjois_karjala"},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_karjala.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Pohjois-Karjala region — grid_pohjois_karjala","text":"data frame 13 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_pohjanmaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Pohjois-Pohjanmaa region — grid_pohjois_pohjanmaa","title":"custom geofacet grid for Pohjois-Pohjanmaa region — grid_pohjois_pohjanmaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_pohjanmaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Pohjois-Pohjanmaa region — grid_pohjois_pohjanmaa","text":"","code":"grid_pohjois_pohjanmaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_pohjanmaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Pohjois-Pohjanmaa region — grid_pohjois_pohjanmaa","text":"data frame 30 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_savo.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Pohjois-Savo region — grid_pohjois_savo","title":"custom geofacet grid for Pohjois-Savo region — grid_pohjois_savo","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_savo.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Pohjois-Savo region — grid_pohjois_savo","text":"","code":"grid_pohjois_savo"},{"path":"https://ropengov.github.io/geofi/reference/grid_pohjois_savo.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Pohjois-Savo region — grid_pohjois_savo","text":"data frame 19 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_sairaanhoitop.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for health care districts — grid_sairaanhoitop","title":"custom geofacet grid for health care districts — grid_sairaanhoitop","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_sairaanhoitop.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for health care districts — grid_sairaanhoitop","text":"","code":"grid_sairaanhoitop"},{"path":"https://ropengov.github.io/geofi/reference/grid_sairaanhoitop.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for health care districts — grid_sairaanhoitop","text":"data frame 21 rows 4 variables: name District name (Sairaanhoitopiiri) Finnish code District code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_satakunta.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Satakunta region — grid_satakunta","title":"custom geofacet grid for Satakunta region — grid_satakunta","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_satakunta.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Satakunta region — grid_satakunta","text":"","code":"grid_satakunta"},{"path":"https://ropengov.github.io/geofi/reference/grid_satakunta.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Satakunta region — grid_satakunta","text":"data frame 16 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_uusimaa.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Uusimaa region — grid_uusimaa","title":"custom geofacet grid for Uusimaa region — grid_uusimaa","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_uusimaa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Uusimaa region — grid_uusimaa","text":"","code":"grid_uusimaa"},{"path":"https://ropengov.github.io/geofi/reference/grid_uusimaa.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Uusimaa region — grid_uusimaa","text":"data frame 26 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_varsinais_suomi.html","id":null,"dir":"Reference","previous_headings":"","what":"custom geofacet grid for Varsinais-Suomi region — grid_varsinais_suomi","title":"custom geofacet grid for Varsinais-Suomi region — grid_varsinais_suomi","text":"Grid table used ggplot2 geofacet","code":""},{"path":"https://ropengov.github.io/geofi/reference/grid_varsinais_suomi.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"custom geofacet grid for Varsinais-Suomi region — grid_varsinais_suomi","text":"","code":"grid_varsinais_suomi"},{"path":"https://ropengov.github.io/geofi/reference/grid_varsinais_suomi.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"custom geofacet grid for Varsinais-Suomi region — grid_varsinais_suomi","text":"data frame 27 rows 4 variables: name Municipality name (kunta) Finnish code Municipality code row Vertical location grid col Horizontal location grid","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_central_localities.html","id":null,"dir":"Reference","previous_headings":"","what":"A simple feature point data containing locations of municipalities central localities — municipality_central_localities","title":"A simple feature point data containing locations of municipalities central localities — municipality_central_localities","text":"Data extracted latest version (April 2023) Topographic Database (Maastotietokanta) National Land Survey Finland (Maanmittauslaitos)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_central_localities.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A simple feature point data containing locations of municipalities central localities — municipality_central_localities","text":"","code":"municipality_central_localities"},{"path":"https://ropengov.github.io/geofi/reference/municipality_central_localities.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"A simple feature point data containing locations of municipalities central localities — municipality_central_localities","text":"simple feature POINT data 311 rows 21 variables: mtk_id mtk_id sijaintitarkkuus location precision aineistolahde data source alkupvm start date teksti Municipality name suunta direction dx dx dy dy kohderyhmä kohderyhmä kohdeluokka kohdeluokka ladontatunnus ladontatunnus kirjasintyyppikoodi kirjasintyyppikoodi kirjasinkoko kirjasinkoko kirjasinvarikoodi kirjasinvarikoodi kirjasinkallistuskulma kirjasinkallistuskulma kirjasinvalyskerroin kirjasinvalyskerroin kuntatunnus municipality code municipality_code municipality code municipality_name_fi municipality name Finnish municipality_name_sv municipality name Swedish municipality_name_en municipality name English geometry geometry","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key.html","id":null,"dir":"Reference","previous_headings":"","what":"Aggregated municipality key table for years 2013-2023 — municipality_key","title":"Aggregated municipality key table for years 2013-2023 — municipality_key","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Aggregated municipality key table for years 2013-2023 — municipality_key","text":"","code":"municipality_key"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Aggregated municipality key table for years 2013-2023 — municipality_key","text":"data frame 3440 rows 77 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish tyossakayntial_name_sv Työssäkäyntialue name Swedish tyossakayntial_name_en Työssäkäyntialue name English vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) kela_vakuutuspiiri_name_fi Kelan vakuutuspiiri name Finnish (Insurance District) kela_vakuutuspiiri_code Kelan vakuutuspiiri unofficial code (Insurance District) kela_vakuutuspiiri_name_sv Kelan vakuutuspiiri name Swedish (Insurance District) kela_vakuutuspiiri_name_en Kelan vakuutuspiiri name English (Insurance District) kela_asumistukialue_name_fi Kelan asumistuen kuntaryhmät name Finnish (Municipality categories housing allowance) kela_asumistukialue_code Kelan asumistuen kuntaryhmät unofficial code (Municipality categories housing allowance) kela_asumistukialue_name_sv Kelan asumistuen kuntaryhmät name Swedish (Municipality categories housing allowance) kela_asumistukialue_name_en Kelan asumistuen kuntaryhmät name English (Municipality categories housing allowance) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Aggregated municipality key table for years 2013-2023 — municipality_key","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2013.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2013 — municipality_key_2013","title":"Municipality key table for 2013 — municipality_key_2013","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2013.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2013 — municipality_key_2013","text":"","code":"municipality_key_2013"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2013.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2013 — municipality_key_2013","text":"data frame 320 rows 33 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2013.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2013 — municipality_key_2013","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2014.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2014 — municipality_key_2014","title":"Municipality key table for 2014 — municipality_key_2014","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2014.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2014 — municipality_key_2014","text":"","code":"municipality_key_2014"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2014.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2014 — municipality_key_2014","text":"data frame 320 rows 37 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2014.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2014 — municipality_key_2014","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2015.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2015 — municipality_key_2015","title":"Municipality key table for 2015 — municipality_key_2015","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2015.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2015 — municipality_key_2015","text":"","code":"municipality_key_2015"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2015.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2015 — municipality_key_2015","text":"data frame 317 rows 37 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2015.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2015 — municipality_key_2015","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2016.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2016 — municipality_key_2016","title":"Municipality key table for 2016 — municipality_key_2016","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2016.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2016 — municipality_key_2016","text":"","code":"municipality_key_2016"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2016.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2016 — municipality_key_2016","text":"data frame 313 rows 37 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2016.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2016 — municipality_key_2016","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2017.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2017 — municipality_key_2017","title":"Municipality key table for 2017 — municipality_key_2017","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2017.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2017 — municipality_key_2017","text":"","code":"municipality_key_2017"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2017.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2017 — municipality_key_2017","text":"data frame 311 rows 53 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2017.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2017 — municipality_key_2017","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2018.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2018 — municipality_key_2018","title":"Municipality key table for 2018 — municipality_key_2018","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2018.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2018 — municipality_key_2018","text":"","code":"municipality_key_2018"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2018.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2018 — municipality_key_2018","text":"data frame 311 rows 63 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2018.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2018 — municipality_key_2018","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2019.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2019 — municipality_key_2019","title":"Municipality key table for 2019 — municipality_key_2019","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2019.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2019 — municipality_key_2019","text":"","code":"municipality_key_2019"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2019.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2019 — municipality_key_2019","text":"data frame 311 rows 67 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2019.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2019 — municipality_key_2019","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2020.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2020 — municipality_key_2020","title":"Municipality key table for 2020 — municipality_key_2020","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2020.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2020 — municipality_key_2020","text":"","code":"municipality_key_2020"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2020.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2020 — municipality_key_2020","text":"data frame 310 rows 67 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2020.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2020 — municipality_key_2020","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2021.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2021 — municipality_key_2021","title":"Municipality key table for 2021 — municipality_key_2021","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2021.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2021 — municipality_key_2021","text":"","code":"municipality_key_2021"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2021.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2021 — municipality_key_2021","text":"data frame 309 rows 67 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2021.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2021 — municipality_key_2021","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2022.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2022 — municipality_key_2022","title":"Municipality key table for 2022 — municipality_key_2022","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2022.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2022 — municipality_key_2022","text":"","code":"municipality_key_2022"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2022.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2022 — municipality_key_2022","text":"data frame 309 rows 73 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) sairaanhoitop_code Sairaanhoitopiiri code (Health care districts) sairaanhoitop_name_fi Sairaanhoitopiiri name Finnish (Health care districts) sairaanhoitop_name_sv Sairaanhoitopiiri name Swedish (Health care districts) sairaanhoitop_name_en Sairaanhoitopiiri name English (Health care districts) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish erva_code Sairaanhoidon erityisvastuualueen code (Catchment areas highly specialised medical care) erva_name_fi Sairaanhoidon erityisvastuualueen name Finnish (Catchment areas highly specialised medical care) erva_name_sv Sairaanhoidon erityisvastuualueen name Swedish (Catchment areas highly specialised medical care) erva_name_en Sairaanhoidon erityisvastuualueen name English (Catchment areas highly specialised medical care) kela_vakuutuspiiri_name_fi Kelan vakuutuspiiri name Finnish (Insurance District) kela_vakuutuspiiri_code Kelan vakuutuspiiri unofficial code (Insurance District) kela_vakuutuspiiri_name_sv Kelan vakuutuspiiri name Swedish (Insurance District) kela_vakuutuspiiri_name_en Kelan vakuutuspiiri name English (Insurance District) kela_asumistukialue_name_fi Kelan asumistuen kuntaryhmät name Finnish (Municipality categories housing allowance) kela_asumistukialue_code Kelan asumistuen kuntaryhmät unofficial code (Municipality categories housing allowance) kela_asumistukialue_name_sv Kelan asumistuen kuntaryhmät name Swedish (Municipality categories housing allowance) kela_asumistukialue_name_en Kelan asumistuen kuntaryhmät name English (Municipality categories housing allowance) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2022.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2022 — municipality_key_2022","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2023.html","id":null,"dir":"Reference","previous_headings":"","what":"Municipality key table for 2023 — municipality_key_2023","title":"Municipality key table for 2023 — municipality_key_2023","text":"Table aggregating municipality level data various regional groupings","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2023.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Municipality key table for 2023 — municipality_key_2023","text":"","code":"municipality_key_2023"},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2023.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Municipality key table for 2023 — municipality_key_2023","text":"data frame 309 rows 69 variables: kunta Municipality code municipality_name_fi Municipality name Finnish municipality_name_sv Municipality name Swedish municipality_name_en Municipality name English kuntaryhmitys_code Tilastollinen kuntaryhmitys (Statistical grouping) code kuntaryhmitys_name_fi Tilastollinen kuntaryhmitys (Statistical grouping) name Finnish kuntaryhmitys_name_sv Tilastollinen kuntaryhmitys (Statistical grouping) name Swedish kuntaryhmitys_name_en Tilastollinen kuntaryhmitys (Statistical grouping) name English avi_code Aluehallintovirasto code (Regional State Administrative Agencies) avi_name_fi Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_sv Aluehallintovirasto name Finnish (Regional State Administrative Agencies) avi_name_en Aluehallintovirasto name Finnish (Regional State Administrative Agencies) ely_code Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre Economic Development, Transport Environment) ely_name_fi Elinkeino-, liikenne- ja ympäristökeskuksen name Finnish (Centre Economic Development, Transport Environment) ely_name_sv Elinkeino-, liikenne- ja ympäristökeskuksen name Swedish (Centre Economic Development, Transport Environment) ely_name_en Elinkeino-, liikenne- ja ympäristökeskuksen name English (Centre Economic Development, Transport Environment) maakunta_code Maakunta code (Regions Finland) maakunta_name_fi Maakunta name Finnish (Regions Finland) maakunta_name_sv Maakunta name Swedish (Regions Finland) maakunta_name_en Maakunta name English (Regions Finland) kielisuhde_code Kielisuhde code (Language distribution 2020) kielisuhde_name_fi Kielisuhde name Finnish (Language distribution 2020) kielisuhde_name_sv Kielisuhde name Swedish (Language distribution 2020) kielisuhde_name_en Kielisuhde name English (Language distribution 2020) seutukunta_code Seutukunta code (Sub-regions Finland) seutukunta_name_fi Seutukunta name Finnish (Sub-regions Finland) seutukunta_name_sv Seutukunta name Swedish (Sub-regions Finland) seutukunta_name_en Seutukunta name English (Sub-regions Finland) year data year suuralue_code Suuralue code suuralue_name_fi Suuralueen nimi Finnish (Large Areas) suuralue_name_sv Suuralueen nimi Swedish (Large Areas) suuralue_name_en Suuralueen nimi English (Large Areas) nuts1_code NUTS 2016 classification code (level 1) nuts1_name_fi NUTS 2016 classification name Finnish (level 1) nuts1_name_sv NUTS 2016 classification name Swedish (level 1) nuts1_name_en NUTS 2016 classification name English (level 1) nuts2_code NUTS 2016 classification code (level 2) nuts2_name_fi NUTS 2016 classification name Finnish (level 2) nuts2_name_sv NUTS 2016 classification name Swedish (level 2) nuts2_name_en nuts2_name_en nuts3_code NUTS 2016 classification code (level 2) nuts3_name_fi NUTS 2016 classification name Finnish (level 3) nuts3_name_sv NUTS 2016 classification name Swedish (level 3) nuts3_name_en NUTS 2016 classification name English (level 3) vaalipiiri_code Vaalipiiri code (Constituencies) vaalipiiri_name_fi Vaalipiiri name Finnish (Constituencies) vaalipiiri_name_sv Vaalipiiri name Swedish (Constituencies) vaalipiiri_name_en Vaalipiiri name English (Constituencies) municipality_code Municipality code kunta_name Municipality name Finnish name_fi Municipality name Finnish name_sv Municipality name Finnish tyossakayntial_code Työssäkäyntialue code tyossakayntial_name_fi Työssäkäyntialue name Finnish tyossakayntial_name_sv Työssäkäyntialue name Swedish tyossakayntial_name_en Työssäkäyntialue name English kela_vakuutuspiiri_name_fi Kelan vakuutuspiiri name Finnish (Insurance District) kela_vakuutuspiiri_code Kelan vakuutuspiiri unofficial code (Insurance District) kela_vakuutuspiiri_name_sv Kelan vakuutuspiiri name Swedish (Insurance District) kela_vakuutuspiiri_name_en Kelan vakuutuspiiri name English (Insurance District) kela_asumistukialue_name_fi Kelan asumistuen kuntaryhmät name Finnish (Municipality categories housing allowance) kela_asumistukialue_code Kelan asumistuen kuntaryhmät unofficial code (Municipality categories housing allowance) kela_asumistukialue_name_sv Kelan asumistuen kuntaryhmät name Swedish (Municipality categories housing allowance) kela_asumistukialue_name_en Kelan asumistuen kuntaryhmät name English (Municipality categories housing allowance) hyvinvointialue_name_fi Hyvinvointialue name Finnish (Wellbeing services counties) hyvinvointialue_name_sv Hyvinvointialue name Swedish (Wellbeing services counties) hyvinvointialue_name_en Hyvinvointialue name English (Wellbeing services counties) hyvinvointialue_code Hyvinvointialue code (Wellbeing services counties)","code":""},{"path":"https://ropengov.github.io/geofi/reference/municipality_key_2023.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Municipality key table for 2023 — municipality_key_2023","text":"https://data.stat.fi/api/classifications/v2/classifications","code":""},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":null,"dir":"Reference","previous_headings":"","what":"Transform a wfs_api object into a sf object. — to_sf","title":"Transform a wfs_api object into a sf object. — to_sf","text":"Statistics Finland WFS API response object's XML (GML) content temporarily written disk immediately read back sf object.","code":""},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transform a wfs_api object into a sf object. — to_sf","text":"","code":"to_sf(api_obj)"},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transform a wfs_api object into a sf object. — to_sf","text":"api_obj wfs api object","code":""},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transform a wfs_api object into a sf object. — to_sf","text":"sf object","code":""},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Transform a wfs_api object into a sf object. — to_sf","text":"internal use, exported.","code":""},{"path":"https://ropengov.github.io/geofi/reference/to_sf.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Transform a wfs_api object into a sf object. — to_sf","text":"Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":null,"dir":"Reference","previous_headings":"","what":"WFS API — wfs_api","title":"WFS API — wfs_api","text":"Requests various WFS API.","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WFS API — wfs_api","text":"","code":"wfs_api(base_url = \"http://geo.stat.fi/geoserver/wfs\", queries)"},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WFS API — wfs_api","text":"base_url string Api base url queries list List query parameters","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WFS API — wfs_api","text":"wfs_api (S3) object following attributes: content XML payload. path path provided get resonse. response original response object.","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"WFS API — wfs_api","text":"Make request spesific WFS API. base url http://geo.stat.fi/geoserver/wfs components defined arguments appended. low-level function intended used higher level functions package. Note GET requests used using httpcache meaning requests cached. want clear cache, use httpcache::clearCache(). turn cache completely, use httpcache::cacheOff()","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"WFS API — wfs_api","text":"Joona Lehtomäki joona.lehtomaki@iki.fi","code":""},{"path":"https://ropengov.github.io/geofi/reference/wfs_api.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WFS API — wfs_api","text":"","code":"wfs_api(base_url = \"http://geo.stat.fi/geoserver/wfs\", queries = append(list(\"service\" = \"WFS\", \"version\" = \"1.0.0\"), list(request = \"getFeature\", layer = \"tilastointialueet:kunta4500k_2017\"))) #> Requesting response from: http://geo.stat.fi/geoserver/wfs?service=WFS&version=1.0.0&request=getFeature&layer=tilastointialueet%3Akunta4500k_2017 #> $url #> [1] \"http://geo.stat.fi/geoserver/wfs?service=WFS&version=1.0.0&request=getFeature&layer=tilastointialueet%3Akunta4500k_2017\" #> #> $response #> Response [http://geo.stat.fi/geoserver/wfs?service=WFS&version=1.0.0&request=getFeature&layer=tilastointialueet%3Akunta4500k_2017] #> Date: 2023-10-31 11:52 #> Status: 200 #> Content-Type: text/xml;charset=UTF-8 #> Size: 450 B #> #> version=\"1.2.0\" #> xmlns=\"http://www.opengis.net/ogc\" #> xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" #> xsi:schemaLocation=\"http://www.opengis.net/ogc http://schemas.opengis.net/... #> #> The query should specify either typeName, featureId filter, or a stored... #> #> $content #> {xml_document} #> #> [1] \\n The query should s ... #> #> attr(,\"class\") #> [1] \"wfs_api\""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-1010","dir":"Changelog","previous_headings":"","what":"geofi 1.0.10","title":"geofi 1.0.10","text":"convert_municipality_key_codes-function fixed, thanks @pitkant Examples vignettes use pxweb-data Statistical Finland changed use Sotkanet instead due stable api","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-109","dir":"Changelog","previous_headings":"","what":"geofi 1.0.9","title":"geofi 1.0.9","text":"CRAN release: 2023-04-16 2023 regional classifications updated. Two classifications: University Hospital specific catchment area (Erva-alue) Hospital District (sairaanhoitopiirit) dropped longer operation replaced wellbeing service counties (hyvinvointialueet)","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-108","dir":"Changelog","previous_headings":"","what":"geofi 1.0.8","title":"geofi 1.0.8","text":"CRAN release: 2023-02-16 Links vignettes pointing Statistics Finland database updated match new naming scheme.","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-107","dir":"Changelog","previous_headings":"","what":"geofi 1.0.7","title":"geofi 1.0.7","text":"CRAN release: 2022-10-23 Links vignettes pinting Statistics Finland database started pxnet2.stat.fi changed start pxdata.stat.fi match stat.fi new naming scheme.","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-106","dir":"Changelog","previous_headings":"","what":"geofi 1.0.6","title":"geofi 1.0.6","text":"CRAN release: 2022-01-30 content variables municipality keys related hyvinvointialue (Wellbeing Service Counties) changed matches now classification Statistics Finland New function get_municipality_pop() added getting population numbers spatial data Finnish municipalities years 2010-2020 Function get_zipcodes() new argument extend_to_sea_areas case need spatial data extend coastline","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-105","dir":"Changelog","previous_headings":"","what":"geofi 1.0.5","title":"geofi 1.0.5","text":"CRAN release: 2021-10-30 English names wellbeing services counties corrected New ropengov template added website","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-104","dir":"Changelog","previous_headings":"","what":"geofi 1.0.4","title":"geofi 1.0.4","text":"CRAN release: 2021-08-18 new regional classification: upcoming Wellbeing services counties, added municipality keys files","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-103","dir":"Changelog","previous_headings":"","what":"geofi 1.0.3","title":"geofi 1.0.3","text":"CRAN release: 2021-07-01 new convert_municipality_key_codes-function can used convert regional codes -board municipality key data sets variable width characters originally provided Statistics Finland new codes_as_characters argument added get_municipalities-function uses convert_municipality_key_codes-function convert region codes characters variable widths. Defaults FALSE examples vignettes use suggested package now conditional availability package tricolore vignette removed due complex dependencies","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-102","dir":"Changelog","previous_headings":"","what":"geofi 1.0.2","title":"geofi 1.0.2","text":"CRAN release: 2021-06-07 examples vignettes use pxweb-data Statistical Finland fixed match changed data structure http -> https changes documentation urls","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-101","dir":"Changelog","previous_headings":"","what":"geofi 1.0.1","title":"geofi 1.0.1","text":"CRAN release: 2021-03-29 duplicated municipalities removed municipality keys year 2016 tricolore_tutorial.Rmd vignette now provides proper method producing final map","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-100","dir":"Changelog","previous_headings":"","what":"geofi 1.0.0","title":"geofi 1.0.0","text":"CRAN release: 2021-02-25 first CRAN release compatibility 2021 mucipality zipcode divide new onboard dataset municipality central locations municipality_central_localities api tests compatible httptest v4.0.0 vignettes restructured","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"geofi-01-development-version","dir":"Changelog","previous_headings":"","what":"geofi 0.1 (development version)","title":"geofi 0.1 (development version)","text":"Reboot gisfin, package renamed geofi.","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"new-features-0-1","dir":"Changelog","previous_headings":"","what":"New features","title":"geofi 0.1 (development version)","text":"WFSs (provider, URL, version) now listed inst/extdata/wfs_providers.yaml. separation data code hopefully makes easier manage data use consistently different parts package (e.g. actual code tests). Package internally, data parsed environment wfs_providers. get_municipalities() get_zipcodes() can now pass extra-arguments (...) underlying get_wfs_layer(). Basic testing harness place using testthat httptest.","code":""},{"path":"https://ropengov.github.io/geofi/news/index.html","id":"development-related-0-1","dir":"Changelog","previous_headings":"","what":"Development related","title":"geofi 0.1 (development version)","text":"Municipal key rda files data dir now saved compress = \"bzip2\" reduce size rda files. Decreased version number 0.1.0.9004 new package now. Decreased R version requirement 3.5.0 check complaining previous version number (3.5.2). DESCRIPTION now defines knitr VignetteEngine package.","code":""}]