Package 'geofi'

Title: Access Finnish Geospatial Data
Description: Designed to simplify geospatial data access from the Statistics Finland Web Feature Service API <https://geo.stat.fi/geoserver/index.html>, the geofi package offers researchers and analysts a set of tools to obtain and harmonize administrative spatial data for a wide range of applications, from urban planning to environmental research. The package contains annually updated time series of municipality key datasets that can be used for data aggregation and language translations.
Authors: Markus Kainu [aut, cre] , Joona Lehtomaki [aut] , Juuso Parkkinen [ctb] , Jani Miettinen [ctb], Pyry Kantanen [ctb], Sampo Vesanen [ctb], Leo Lahti [aut]
Maintainer: Markus Kainu <[email protected]>
License: BSD_2_clause + file LICENSE
Version: 1.0.17
Built: 2024-12-22 06:06:12 UTC
Source: https://github.com/rOpenGov/geofi

Help Index


Check access to http://geo.stat.fi/geoserver/wfs

Description

Check if R has access to resources at http://geo.stat.fi/geoserver/wfs

Usage

check_api_access()

Value

a logical.

Author(s)

Markus Kainu [email protected]

Examples

## Not run: 
   check_api_access()
 
## End(Not run)

Convert regional codes in on-board municipality key data sets into variable length characters

Description

Statistics Finland provides numerical codes of regions as two or three digit characters. By default, those are converted to integers by geofi for convenience, but can be converted back using this function.

Usage

convert_municipality_key_codes(muni_key = geofi::municipality_key)

Arguments

muni_key

a municipality key from geofi-package

Value

tibble with codes converted to variable length characters as provided by Statistics Finland

Author(s)

Markus Kainu [email protected], Pyry Kantanen

Examples

## Not run: 
 convert_municipality_key_codes(muni_key = geofi::municipality_key)
 
## End(Not run)

Get Finnish municipality (multi)polygons for different years and/or scales.

Description

Thin wrapper around Finnish zip code areas provided by Statistics Finland.

Usage

get_municipalities(year = 2024, scale = 4500, codes_as_character = FALSE)

Arguments

year

A numeric for year of the administrative borders. Available are 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 and 2024.

scale

A scale or resolution of the shape. Two options: 1000 equals 1:1 000 000 and 4500 equals 1:4 500 000.

codes_as_character

A logical determining if the region codes should be returned as strings of equal width as originally provided by Statistics Finland instead of integers.

Value

sf object

Author(s)

Markus Kainu [email protected], Joona Lehtomäki [email protected]

Examples

## Not run: 
 f <- get_municipalities(year=2016, scale = 4500)
 plot(f)
 
## End(Not run)

Get Number of population by Finnish municipality (multi)polygons for different years.

Description

Thin wrapper around Finnish zip code areas provided by Statistics Finland.

Usage

get_municipality_pop(year = 2022, codes_as_character = FALSE)

Arguments

year

A numeric for year of the administrative borders. Available are 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 and 2022.

codes_as_character

A logical determining if the region codes should be returned as strings of equal width as originally provided by Statistics Finland instead of integers.

Details

The number of population on the last day of the reference year combined with municipality borders from year after. Calling the function with year = 2019 returns population data from 2019-12-31 with spatial data from 2020.

The statistical variables in the data are: total population (vaesto), share of the total population (vaesto_p), number of men (miehet), men's share of the population in an area (miehet_p) and women (naiset), women's share (naiset_p), those aged under 15: number (ika_0_14), share (ika_0_14p), those aged 15 to 64: number (ika_15_64), share (ika_15_64p), and aged 65 or over: number (ika_65_), share (ika_65_p).

Value

sf object

Author(s)

Markus Kainu [email protected], Joona Lehtomäki [email protected]

Examples

## Not run: 
 f <- get_municipality_pop(year=2020)
 plot(f)
 
## End(Not run)

Get Finnish Population grid in two different resolutions for years 2010-2022 Thin wrapper around Finnish population grid data provided by Statistics Finland.

Description

Get Finnish Population grid in two different resolutions for years 2010-2022 Thin wrapper around Finnish population grid data provided by Statistics Finland.

Usage

get_population_grid(year = 2022, resolution = 5)

Arguments

year

A numeric for year of the population grid. Years available 2005 and 2010-2022.

resolution

1 (1km x 1km) or 5 (5km x 5km)

Details

More information about the dataset from Paikkatietohakemisto

Value

sf object

Author(s)

Markus Kainu [email protected], Joona Lehtomäki [email protected]

Examples

## Not run: 
 f <- get_population_grid(year=2017)
 plot(f)
 
## End(Not run)

Get Statistical grid data polygons at two different resolution

Description

Thin wrapper around Finnish statistical grid data provided by Statistics Finland.

Usage

get_statistical_grid(resolution = 5, auxiliary_data = FALSE)

Arguments

resolution

integer 1 (1km x 1km) or 5 (5km x 5km)

auxiliary_data

logical Whether to include auxiliary data containing municipality membership data. Default FALSE

Value

sf object

Author(s)

Markus Kainu [email protected], Joona Lehtomäki [email protected]

Examples

## Not run: 
 f <- get_statistical_grid(resolution = 5, auxiliary_data = FALSE)
 plot(f)
 
## End(Not run)

Get Finnish zip code (multi)polygons for different years.

Description

Thin wrapper around Finnish zip code areas provided by Statistics Finland.

Usage

get_zipcodes(year = 2023, extend_to_sea_areas = FALSE)

Arguments

year

A numeric for year of the zipcodes. Years available 2015-2024.

extend_to_sea_areas

A logical. Extend the data to show also the sea areas.

Value

sf object

Author(s)

Markus Kainu [email protected], Joona Lehtomäki [email protected]

Examples

## Not run: 
 f <- get_zipcodes(year=2022)
 plot(f)
 
## End(Not run)

custom geofacet grid for Ahvenanmaa region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_ahvenanmaa

Format

A data frame with 16 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Etelä-Karjala region as in 2020

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_etela_karjala

Format

A data frame with 9 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Etelä-Pohjanmaa

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_etela_pohjanmaa

Format

A data frame with 18 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Etelä-Savo

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_etela_savo

Format

A data frame with 12 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Wellbeing services counties

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_hyvinvointialue

Format

A data frame with 23 rows and 4 variables:

name

Wellbeing services county name (hyvinvointialue) in Finnish

code

Wellbeing services counties code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Kainuu region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_kainuu

Format

A data frame with 8 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Kanta-Häme region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_kanta_hame

Format

A data frame with 11 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Keski-Pohjanmaa region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_keski_pohjanmaa

Format

A data frame with 8 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Keski-Suomi region as in 2020

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_keski_suomi

Format

A data frame with 22 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Kymenlaakso region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_kymenlaakso

Format

A data frame with 6 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Lappi region as in 2020

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_lappi

Format

A data frame with 21 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for regions

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_maakunta

Format

A data frame with 19 rows and 4 variables:

name

Region name (maakunta) in Finnish

code

Region code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Päijät-Häme region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_paijat_hame

Format

A data frame with 10 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Pirkanmaa region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_pirkanmaa

Format

A data frame with 23 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Pohjanmaa region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_pohjanmaa

Format

A data frame with 14 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Pohjois-Karjala region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_pohjois_karjala

Format

A data frame with 13 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Pohjois-Pohjanmaa region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_pohjois_pohjanmaa

Format

A data frame with 30 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Pohjois-Savo region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_pohjois_savo

Format

A data frame with 19 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for health care districts

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_sairaanhoitop

Format

A data frame with 21 rows and 4 variables:

name

District name (Sairaanhoitopiiri) in Finnish

code

District code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Satakunta region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_satakunta

Format

A data frame with 16 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Uusimaa region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_uusimaa

Format

A data frame with 26 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


custom geofacet grid for Varsinais-Suomi region

Description

Grid table to be used with ggplot2 and geofacet

Usage

grid_varsinais_suomi

Format

A data frame with 27 rows and 4 variables:

name

Municipality name (kunta) in Finnish

code

Municipality code

row

Vertical location in grid

col

Horizontal location in grid


A simple feature point data containing locations of municipalities central localities

Description

Data is extracted from latest version (April 2023) of Topographic Database (Maastotietokanta) by National Land Survey of Finland (Maanmittauslaitos)

Usage

municipality_central_localities

Format

A simple feature POINT data with 311 rows and 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 in Finnish

municipality_name_sv

municipality name in Swedish

municipality_name_en

municipality name in English

geometry

geometry


Aggregated municipality key table for years 2013-2024

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key

Format

A data frame with 3440 rows and 81 variables:

kunta

Municipality code

municipality_name_fi

Municipality name in Finnish

municipality_name_sv

Municipality name in Swedish

municipality_name_en

Municipality name in English

kuntaryhmitys_code

Tilastollinen kuntaryhmitys (Statistical grouping) code

kuntaryhmitys_name_fi

Tilastollinen kuntaryhmitys (Statistical grouping) name in Finnish

kuntaryhmitys_name_sv

Tilastollinen kuntaryhmitys (Statistical grouping) name in Swedish

kuntaryhmitys_name_en

Tilastollinen kuntaryhmitys (Statistical grouping) name in English

avi_code

Aluehallintovirasto code (Regional State Administrative Agencies)

avi_name_fi

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_sv

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_en

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

ely_code

Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre for Economic Development, Transport and the Environment)

ely_name_fi

Elinkeino-, liikenne- ja ympäristökeskuksen name in Finnish (Centre for Economic Development, Transport and the Environment)

ely_name_sv

Elinkeino-, liikenne- ja ympäristökeskuksen name in Swedish (Centre for Economic Development, Transport and the Environment)

ely_name_en

Elinkeino-, liikenne- ja ympäristökeskuksen name in English (Centre for Economic Development, Transport and the Environment)

maakunta_code

Maakunta code (Regions of Finland)

maakunta_name_fi

Maakunta name in Finnish (Regions of Finland)

maakunta_name_sv

Maakunta name in Swedish (Regions of Finland)

maakunta_name_en

Maakunta name in English (Regions of Finland)

kielisuhde_code

Kielisuhde code (Language distribution 2020)

kielisuhde_name_fi

Kielisuhde name in Finnish (Language distribution 2020)

kielisuhde_name_sv

Kielisuhde name in Swedish (Language distribution 2020)

kielisuhde_name_en

Kielisuhde name in English (Language distribution 2020)

seutukunta_code

Seutukunta code (Sub-regions of Finland)

seutukunta_name_fi

Seutukunta name in Finnish (Sub-regions of Finland)

seutukunta_name_sv

Seutukunta name in Swedish (Sub-regions of Finland)

seutukunta_name_en

Seutukunta name in English (Sub-regions of Finland)

year

data year

suuralue_code

Suuralue code

suuralue_name_fi

Suuralueen nimi in Finnish (Large Areas)

suuralue_name_sv

Suuralueen nimi in Swedish (Large Areas)

suuralue_name_en

Suuralueen nimi in English (Large Areas)

sairaanhoitop_code

Sairaanhoitopiiri code (Health care districts)

sairaanhoitop_name_fi

Sairaanhoitopiiri name in Finnish (Health care districts)

sairaanhoitop_name_sv

Sairaanhoitopiiri name in Swedish (Health care districts)

sairaanhoitop_name_en

Sairaanhoitopiiri name in English (Health care districts)

nuts1_code

NUTS 2016 classification code (level 1)

nuts1_name_fi

NUTS 2016 classification name in Finnish (level 1)

nuts1_name_sv

NUTS 2016 classification name in Swedish (level 1)

nuts1_name_en

NUTS 2016 classification name in English (level 1)

nuts2_code

NUTS 2016 classification code (level 2)

nuts2_name_fi

NUTS 2016 classification name in Finnish (level 2)

nuts2_name_sv

NUTS 2016 classification name in Swedish (level 2)

nuts2_name_en

nuts2_name_en

nuts3_code

NUTS 2016 classification code (level 2)

nuts3_name_fi

NUTS 2016 classification name in Finnish (level 3)

nuts3_name_sv

NUTS 2016 classification name in Swedish (level 3)

nuts3_name_en

NUTS 2016 classification name in English (level 3)

tyossakayntial_code

Työssäkäyntialue code

tyossakayntial_name_fi

Työssäkäyntialue name in Finnish

tyossakayntial_name_sv

Työssäkäyntialue name in Swedish

tyossakayntial_name_en

Työssäkäyntialue name in English

vaalipiiri_code

Vaalipiiri code (Constituencies)

vaalipiiri_name_fi

Vaalipiiri name in Finnish (Constituencies)

vaalipiiri_name_sv

Vaalipiiri name in Swedish (Constituencies)

vaalipiiri_name_en

Vaalipiiri name in English (Constituencies)

municipality_code

Municipality code

kunta_name

Municipality name in Finnish

name_fi

Municipality name in Finnish

name_sv

Municipality name in Finnish

yhteistyoalue_code

Sosiaali- ja terveydenhuollon yhteistyöalueiden koodi (Collaborative areas for healthcare and social welfare codes)

yhteistyoalue_name_fi

Sosiaali- ja terveydenhuollon yhteistyöalueet

yhteistyoalue_name_sv

Samarbetsområden för social- och hälsovården

yhteistyoalue_name_en

Collaborative areas for healthcare and social welfare

erva_code

Sairaanhoidon erityisvastuualueen code (Catchment areas for highly specialised medical care)

erva_name_fi

Sairaanhoidon erityisvastuualueen name in Finnish (Catchment areas for highly specialised medical care)

erva_name_sv

Sairaanhoidon erityisvastuualueen name in Swedish (Catchment areas for highly specialised medical care)

erva_name_en

Sairaanhoidon erityisvastuualueen name in English (Catchment areas for highly specialised medical care)

kela_vakuutuspiiri_name_fi

Kelan vakuutuspiiri name in Finnish (Insurance District)

kela_vakuutuspiiri_code

Kelan vakuutuspiiri unofficial code (Insurance District)

kela_vakuutuspiiri_name_sv

Kelan vakuutuspiiri name in Swedish (Insurance District)

kela_vakuutuspiiri_name_en

Kelan vakuutuspiiri name in English (Insurance District)

kela_asumistukialue_name_fi

Kelan asumistuen kuntaryhmät name in Finnish (Municipality categories for housing allowance)

kela_asumistukialue_code

Kelan asumistuen kuntaryhmät unofficial code (Municipality categories for housing allowance)

kela_asumistukialue_name_sv

Kelan asumistuen kuntaryhmät name in Swedish (Municipality categories for housing allowance)

kela_asumistukialue_name_en

Kelan asumistuen kuntaryhmät name in English (Municipality categories for housing allowance)

hyvinvointialue_name_fi

Hyvinvointialue name in Finnish (Wellbeing services counties)

hyvinvointialue_name_sv

Hyvinvointialue name in Swedish (Wellbeing services counties)

hyvinvointialue_name_en

Hyvinvointialue name in English (Wellbeing services counties)

hyvinvointialue_code

Hyvinvointialue code (Wellbeing services counties)

Source

https://data.stat.fi/api/classifications/v2/classifications


municipality_key_2013

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2013

Format

A data frame with 320 rows and 35 variables:

kunta

kunta

municipality_name_fi

municipality_name_fi

municipality_name_sv

municipality_name_sv

municipality_name_en

municipality_name_en

avi_code

avi_code

avi_name_fi

avi_name_fi

avi_name_sv

avi_name_sv

avi_name_en

avi_name_en

kuntaryhmitys_code

kuntaryhmitys_code

kuntaryhmitys_name_fi

kuntaryhmitys_name_fi

kuntaryhmitys_name_sv

kuntaryhmitys_name_sv

kuntaryhmitys_name_en

kuntaryhmitys_name_en

tyossakayntial_code

tyossakayntial_code

tyossakayntial_name_fi

tyossakayntial_name_fi

ely_code

ely_code

ely_name_fi

ely_name_fi

ely_name_sv

ely_name_sv

ely_name_en

ely_name_en

maakunta_code

maakunta_code

maakunta_name_fi

maakunta_name_fi

maakunta_name_sv

maakunta_name_sv

maakunta_name_en

maakunta_name_en

seutukunta_code

seutukunta_code

seutukunta_name_fi

seutukunta_name_fi

seutukunta_name_sv

seutukunta_name_sv

seutukunta_name_en

seutukunta_name_en

kielisuhde_code

kielisuhde_code

kielisuhde_name_fi

kielisuhde_name_fi

kielisuhde_name_sv

kielisuhde_name_sv

kielisuhde_name_en

kielisuhde_name_en

year

year

municipality_code

municipality_code

kunta_name

kunta_name

name_fi

name_fi

name_sv

name_sv

Source

https://data.stat.fi/api/classifications/v2/classifications


municipality_key_2014

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2014

Format

A data frame with 320 rows and 39 variables:

kunta

kunta

municipality_name_fi

municipality_name_fi

municipality_name_sv

municipality_name_sv

municipality_name_en

municipality_name_en

avi_code

avi_code

avi_name_fi

avi_name_fi

avi_name_sv

avi_name_sv

avi_name_en

avi_name_en

kuntaryhmitys_code

kuntaryhmitys_code

kuntaryhmitys_name_fi

kuntaryhmitys_name_fi

kuntaryhmitys_name_sv

kuntaryhmitys_name_sv

kuntaryhmitys_name_en

kuntaryhmitys_name_en

tyossakayntial_code

tyossakayntial_code

tyossakayntial_name_fi

tyossakayntial_name_fi

ely_code

ely_code

ely_name_fi

ely_name_fi

ely_name_sv

ely_name_sv

ely_name_en

ely_name_en

maakunta_code

maakunta_code

maakunta_name_fi

maakunta_name_fi

maakunta_name_sv

maakunta_name_sv

maakunta_name_en

maakunta_name_en

seutukunta_code

seutukunta_code

seutukunta_name_fi

seutukunta_name_fi

seutukunta_name_sv

seutukunta_name_sv

seutukunta_name_en

seutukunta_name_en

kielisuhde_code

kielisuhde_code

kielisuhde_name_fi

kielisuhde_name_fi

kielisuhde_name_sv

kielisuhde_name_sv

kielisuhde_name_en

kielisuhde_name_en

year

year

suuralue_code

suuralue_code

suuralue_name_fi

suuralue_name_fi

suuralue_name_sv

suuralue_name_sv

suuralue_name_en

suuralue_name_en

municipality_code

municipality_code

kunta_name

kunta_name

name_fi

name_fi

name_sv

name_sv

Source

https://data.stat.fi/api/classifications/v2/classifications


municipality_key_2015

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2015

Format

A data frame with 317 rows and 39 variables:

kunta

kunta

municipality_name_fi

municipality_name_fi

municipality_name_sv

municipality_name_sv

municipality_name_en

municipality_name_en

avi_code

avi_code

avi_name_fi

avi_name_fi

avi_name_sv

avi_name_sv

avi_name_en

avi_name_en

kuntaryhmitys_code

kuntaryhmitys_code

kuntaryhmitys_name_fi

kuntaryhmitys_name_fi

kuntaryhmitys_name_sv

kuntaryhmitys_name_sv

kuntaryhmitys_name_en

kuntaryhmitys_name_en

tyossakayntial_code

tyossakayntial_code

tyossakayntial_name_fi

tyossakayntial_name_fi

ely_code

ely_code

ely_name_fi

ely_name_fi

ely_name_sv

ely_name_sv

ely_name_en

ely_name_en

maakunta_code

maakunta_code

maakunta_name_fi

maakunta_name_fi

maakunta_name_sv

maakunta_name_sv

maakunta_name_en

maakunta_name_en

seutukunta_code

seutukunta_code

seutukunta_name_fi

seutukunta_name_fi

seutukunta_name_sv

seutukunta_name_sv

seutukunta_name_en

seutukunta_name_en

kielisuhde_code

kielisuhde_code

kielisuhde_name_fi

kielisuhde_name_fi

kielisuhde_name_sv

kielisuhde_name_sv

kielisuhde_name_en

kielisuhde_name_en

year

year

suuralue_code

suuralue_code

suuralue_name_fi

suuralue_name_fi

suuralue_name_sv

suuralue_name_sv

suuralue_name_en

suuralue_name_en

municipality_code

municipality_code

kunta_name

kunta_name

name_fi

name_fi

name_sv

name_sv

Source

https://data.stat.fi/api/classifications/v2/classifications


municipality_key_2016

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2016

Format

A data frame with 313 rows and 39 variables:

kunta

kunta

municipality_name_fi

municipality_name_fi

municipality_name_sv

municipality_name_sv

municipality_name_en

municipality_name_en

avi_code

avi_code

avi_name_fi

avi_name_fi

avi_name_sv

avi_name_sv

avi_name_en

avi_name_en

kuntaryhmitys_code

kuntaryhmitys_code

kuntaryhmitys_name_fi

kuntaryhmitys_name_fi

kuntaryhmitys_name_sv

kuntaryhmitys_name_sv

kuntaryhmitys_name_en

kuntaryhmitys_name_en

tyossakayntial_code

tyossakayntial_code

tyossakayntial_name_fi

tyossakayntial_name_fi

ely_code

ely_code

ely_name_fi

ely_name_fi

ely_name_sv

ely_name_sv

ely_name_en

ely_name_en

maakunta_code

maakunta_code

maakunta_name_fi

maakunta_name_fi

maakunta_name_sv

maakunta_name_sv

maakunta_name_en

maakunta_name_en

seutukunta_code

seutukunta_code

seutukunta_name_fi

seutukunta_name_fi

seutukunta_name_sv

seutukunta_name_sv

seutukunta_name_en

seutukunta_name_en

kielisuhde_code

kielisuhde_code

kielisuhde_name_fi

kielisuhde_name_fi

kielisuhde_name_sv

kielisuhde_name_sv

kielisuhde_name_en

kielisuhde_name_en

year

year

suuralue_code

suuralue_code

suuralue_name_fi

suuralue_name_fi

suuralue_name_sv

suuralue_name_sv

suuralue_name_en

suuralue_name_en

municipality_code

municipality_code

kunta_name

kunta_name

name_fi

name_fi

name_sv

name_sv

Source

https://data.stat.fi/api/classifications/v2/classifications


municipality_key_2017

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2017

Format

A data frame with 311 rows and 55 variables:

kunta

kunta

municipality_name_fi

municipality_name_fi

municipality_name_sv

municipality_name_sv

municipality_name_en

municipality_name_en

avi_code

avi_code

avi_name_fi

avi_name_fi

avi_name_sv

avi_name_sv

avi_name_en

avi_name_en

kuntaryhmitys_code

kuntaryhmitys_code

kuntaryhmitys_name_fi

kuntaryhmitys_name_fi

kuntaryhmitys_name_sv

kuntaryhmitys_name_sv

kuntaryhmitys_name_en

kuntaryhmitys_name_en

tyossakayntial_code

tyossakayntial_code

tyossakayntial_name_fi

tyossakayntial_name_fi

ely_code

ely_code

ely_name_fi

ely_name_fi

ely_name_sv

ely_name_sv

ely_name_en

ely_name_en

maakunta_code

maakunta_code

maakunta_name_fi

maakunta_name_fi

maakunta_name_sv

maakunta_name_sv

maakunta_name_en

maakunta_name_en

seutukunta_code

seutukunta_code

seutukunta_name_fi

seutukunta_name_fi

seutukunta_name_sv

seutukunta_name_sv

seutukunta_name_en

seutukunta_name_en

kielisuhde_code

kielisuhde_code

kielisuhde_name_fi

kielisuhde_name_fi

kielisuhde_name_sv

kielisuhde_name_sv

kielisuhde_name_en

kielisuhde_name_en

year

year

suuralue_code

suuralue_code

suuralue_name_fi

suuralue_name_fi

suuralue_name_sv

suuralue_name_sv

suuralue_name_en

suuralue_name_en

sairaanhoitop_code

sairaanhoitop_code

sairaanhoitop_name_fi

sairaanhoitop_name_fi

sairaanhoitop_name_sv

sairaanhoitop_name_sv

sairaanhoitop_name_en

sairaanhoitop_name_en

nuts1_code

nuts1_code

nuts1_name_fi

nuts1_name_fi

nuts1_name_sv

nuts1_name_sv

nuts1_name_en

nuts1_name_en

nuts2_code

nuts2_code

nuts2_name_fi

nuts2_name_fi

nuts2_name_sv

nuts2_name_sv

nuts2_name_en

nuts2_name_en

nuts3_code

nuts3_code

nuts3_name_fi

nuts3_name_fi

nuts3_name_sv

nuts3_name_sv

nuts3_name_en

nuts3_name_en

municipality_code

municipality_code

kunta_name

kunta_name

name_fi

name_fi

name_sv

name_sv

Source

https://data.stat.fi/api/classifications/v2/classifications


Municipality key table for 2018

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2018

Format

A data frame with 311 rows and 63 variables:

kunta

Municipality code

municipality_name_fi

Municipality name in Finnish

municipality_name_sv

Municipality name in Swedish

municipality_name_en

Municipality name in English

kuntaryhmitys_code

Tilastollinen kuntaryhmitys (Statistical grouping) code

kuntaryhmitys_name_fi

Tilastollinen kuntaryhmitys (Statistical grouping) name in Finnish

kuntaryhmitys_name_sv

Tilastollinen kuntaryhmitys (Statistical grouping) name in Swedish

kuntaryhmitys_name_en

Tilastollinen kuntaryhmitys (Statistical grouping) name in English

avi_code

Aluehallintovirasto code (Regional State Administrative Agencies)

avi_name_fi

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_sv

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_en

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

ely_code

Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre for Economic Development, Transport and the Environment)

ely_name_fi

Elinkeino-, liikenne- ja ympäristökeskuksen name in Finnish (Centre for Economic Development, Transport and the Environment)

ely_name_sv

Elinkeino-, liikenne- ja ympäristökeskuksen name in Swedish (Centre for Economic Development, Transport and the Environment)

ely_name_en

Elinkeino-, liikenne- ja ympäristökeskuksen name in English (Centre for Economic Development, Transport and the Environment)

maakunta_code

Maakunta code (Regions of Finland)

maakunta_name_fi

Maakunta name in Finnish (Regions of Finland)

maakunta_name_sv

Maakunta name in Swedish (Regions of Finland)

maakunta_name_en

Maakunta name in English (Regions of Finland)

kielisuhde_code

Kielisuhde code (Language distribution 2020)

kielisuhde_name_fi

Kielisuhde name in Finnish (Language distribution 2020)

kielisuhde_name_sv

Kielisuhde name in Swedish (Language distribution 2020)

kielisuhde_name_en

Kielisuhde name in English (Language distribution 2020)

seutukunta_code

Seutukunta code (Sub-regions of Finland)

seutukunta_name_fi

Seutukunta name in Finnish (Sub-regions of Finland)

seutukunta_name_sv

Seutukunta name in Swedish (Sub-regions of Finland)

seutukunta_name_en

Seutukunta name in English (Sub-regions of Finland)

year

data year

suuralue_code

Suuralue code

suuralue_name_fi

Suuralueen nimi in Finnish (Large Areas)

suuralue_name_sv

Suuralueen nimi in Swedish (Large Areas)

suuralue_name_en

Suuralueen nimi in English (Large Areas)

sairaanhoitop_code

Sairaanhoitopiiri code (Health care districts)

sairaanhoitop_name_fi

Sairaanhoitopiiri name in Finnish (Health care districts)

sairaanhoitop_name_sv

Sairaanhoitopiiri name in Swedish (Health care districts)

sairaanhoitop_name_en

Sairaanhoitopiiri name in English (Health care districts)

nuts1_code

NUTS 2016 classification code (level 1)

nuts1_name_fi

NUTS 2016 classification name in Finnish (level 1)

nuts1_name_sv

NUTS 2016 classification name in Swedish (level 1)

nuts1_name_en

NUTS 2016 classification name in English (level 1)

nuts2_code

NUTS 2016 classification code (level 2)

nuts2_name_fi

NUTS 2016 classification name in Finnish (level 2)

nuts2_name_sv

NUTS 2016 classification name in Swedish (level 2)

nuts2_name_en

nuts2_name_en

nuts3_code

NUTS 2016 classification code (level 2)

nuts3_name_fi

NUTS 2016 classification name in Finnish (level 3)

nuts3_name_sv

NUTS 2016 classification name in Swedish (level 3)

nuts3_name_en

NUTS 2016 classification name in English (level 3)

tyossakayntial_code

Työssäkäyntialue code

tyossakayntial_name_fi

Työssäkäyntialue name in Finnish

municipality_code

Municipality code

kunta_name

Municipality name in Finnish

name_fi

Municipality name in Finnish

name_sv

Municipality name in Finnish

erva_code

Sairaanhoidon erityisvastuualueen code (Catchment areas for highly specialised medical care)

erva_name_fi

Sairaanhoidon erityisvastuualueen name in Finnish (Catchment areas for highly specialised medical care)

erva_name_sv

Sairaanhoidon erityisvastuualueen name in Swedish (Catchment areas for highly specialised medical care)

erva_name_en

Sairaanhoidon erityisvastuualueen name in English (Catchment areas for highly specialised medical care)

hyvinvointialue_name_fi

Hyvinvointialue name in Finnish (Wellbeing services counties)

hyvinvointialue_name_sv

Hyvinvointialue name in Swedish (Wellbeing services counties)

hyvinvointialue_name_en

Hyvinvointialue name in English (Wellbeing services counties)

hyvinvointialue_code

Hyvinvointialue code (Wellbeing services counties)

Source

https://data.stat.fi/api/classifications/v2/classifications


Municipality key table for 2019

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2019

Format

A data frame with 311 rows and 67 variables:

kunta

Municipality code

municipality_name_fi

Municipality name in Finnish

municipality_name_sv

Municipality name in Swedish

municipality_name_en

Municipality name in English

kuntaryhmitys_code

Tilastollinen kuntaryhmitys (Statistical grouping) code

kuntaryhmitys_name_fi

Tilastollinen kuntaryhmitys (Statistical grouping) name in Finnish

kuntaryhmitys_name_sv

Tilastollinen kuntaryhmitys (Statistical grouping) name in Swedish

kuntaryhmitys_name_en

Tilastollinen kuntaryhmitys (Statistical grouping) name in English

avi_code

Aluehallintovirasto code (Regional State Administrative Agencies)

avi_name_fi

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_sv

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_en

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

ely_code

Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre for Economic Development, Transport and the Environment)

ely_name_fi

Elinkeino-, liikenne- ja ympäristökeskuksen name in Finnish (Centre for Economic Development, Transport and the Environment)

ely_name_sv

Elinkeino-, liikenne- ja ympäristökeskuksen name in Swedish (Centre for Economic Development, Transport and the Environment)

ely_name_en

Elinkeino-, liikenne- ja ympäristökeskuksen name in English (Centre for Economic Development, Transport and the Environment)

maakunta_code

Maakunta code (Regions of Finland)

maakunta_name_fi

Maakunta name in Finnish (Regions of Finland)

maakunta_name_sv

Maakunta name in Swedish (Regions of Finland)

maakunta_name_en

Maakunta name in English (Regions of Finland)

kielisuhde_code

Kielisuhde code (Language distribution 2020)

kielisuhde_name_fi

Kielisuhde name in Finnish (Language distribution 2020)

kielisuhde_name_sv

Kielisuhde name in Swedish (Language distribution 2020)

kielisuhde_name_en

Kielisuhde name in English (Language distribution 2020)

seutukunta_code

Seutukunta code (Sub-regions of Finland)

seutukunta_name_fi

Seutukunta name in Finnish (Sub-regions of Finland)

seutukunta_name_sv

Seutukunta name in Swedish (Sub-regions of Finland)

seutukunta_name_en

Seutukunta name in English (Sub-regions of Finland)

year

data year

suuralue_code

Suuralue code

suuralue_name_fi

Suuralueen nimi in Finnish (Large Areas)

suuralue_name_sv

Suuralueen nimi in Swedish (Large Areas)

suuralue_name_en

Suuralueen nimi in English (Large Areas)

sairaanhoitop_code

Sairaanhoitopiiri code (Health care districts)

sairaanhoitop_name_fi

Sairaanhoitopiiri name in Finnish (Health care districts)

sairaanhoitop_name_sv

Sairaanhoitopiiri name in Swedish (Health care districts)

sairaanhoitop_name_en

Sairaanhoitopiiri name in English (Health care districts)

nuts1_code

NUTS 2016 classification code (level 1)

nuts1_name_fi

NUTS 2016 classification name in Finnish (level 1)

nuts1_name_sv

NUTS 2016 classification name in Swedish (level 1)

nuts1_name_en

NUTS 2016 classification name in English (level 1)

nuts2_code

NUTS 2016 classification code (level 2)

nuts2_name_fi

NUTS 2016 classification name in Finnish (level 2)

nuts2_name_sv

NUTS 2016 classification name in Swedish (level 2)

nuts2_name_en

nuts2_name_en

nuts3_code

NUTS 2016 classification code (level 2)

nuts3_name_fi

NUTS 2016 classification name in Finnish (level 3)

nuts3_name_sv

NUTS 2016 classification name in Swedish (level 3)

nuts3_name_en

NUTS 2016 classification name in English (level 3)

tyossakayntial_code

Työssäkäyntialue code

tyossakayntial_name_fi

Työssäkäyntialue name in Finnish

vaalipiiri_code

Vaalipiiri code (Constituencies)

vaalipiiri_name_fi

Vaalipiiri name in Finnish (Constituencies)

vaalipiiri_name_sv

Vaalipiiri name in Swedish (Constituencies)

vaalipiiri_name_en

Vaalipiiri name in English (Constituencies)

municipality_code

Municipality code

kunta_name

Municipality name in Finnish

name_fi

Municipality name in Finnish

name_sv

Municipality name in Finnish

erva_code

Sairaanhoidon erityisvastuualueen code (Catchment areas for highly specialised medical care)

erva_name_fi

Sairaanhoidon erityisvastuualueen name in Finnish (Catchment areas for highly specialised medical care)

erva_name_sv

Sairaanhoidon erityisvastuualueen name in Swedish (Catchment areas for highly specialised medical care)

erva_name_en

Sairaanhoidon erityisvastuualueen name in English (Catchment areas for highly specialised medical care)

hyvinvointialue_name_fi

Hyvinvointialue name in Finnish (Wellbeing services counties)

hyvinvointialue_name_sv

Hyvinvointialue name in Swedish (Wellbeing services counties)

hyvinvointialue_name_en

Hyvinvointialue name in English (Wellbeing services counties)

hyvinvointialue_code

Hyvinvointialue code (Wellbeing services counties)

Source

https://data.stat.fi/api/classifications/v2/classifications


Municipality key table for 2020

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2020

Format

A data frame with 310 rows and 67 variables:

kunta

Municipality code

municipality_name_fi

Municipality name in Finnish

municipality_name_sv

Municipality name in Swedish

municipality_name_en

Municipality name in English

kuntaryhmitys_code

Tilastollinen kuntaryhmitys (Statistical grouping) code

kuntaryhmitys_name_fi

Tilastollinen kuntaryhmitys (Statistical grouping) name in Finnish

kuntaryhmitys_name_sv

Tilastollinen kuntaryhmitys (Statistical grouping) name in Swedish

kuntaryhmitys_name_en

Tilastollinen kuntaryhmitys (Statistical grouping) name in English

avi_code

Aluehallintovirasto code (Regional State Administrative Agencies)

avi_name_fi

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_sv

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_en

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

ely_code

Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre for Economic Development, Transport and the Environment)

ely_name_fi

Elinkeino-, liikenne- ja ympäristökeskuksen name in Finnish (Centre for Economic Development, Transport and the Environment)

ely_name_sv

Elinkeino-, liikenne- ja ympäristökeskuksen name in Swedish (Centre for Economic Development, Transport and the Environment)

ely_name_en

Elinkeino-, liikenne- ja ympäristökeskuksen name in English (Centre for Economic Development, Transport and the Environment)

maakunta_code

Maakunta code (Regions of Finland)

maakunta_name_fi

Maakunta name in Finnish (Regions of Finland)

maakunta_name_sv

Maakunta name in Swedish (Regions of Finland)

maakunta_name_en

Maakunta name in English (Regions of Finland)

kielisuhde_code

Kielisuhde code (Language distribution 2020)

kielisuhde_name_fi

Kielisuhde name in Finnish (Language distribution 2020)

kielisuhde_name_sv

Kielisuhde name in Swedish (Language distribution 2020)

kielisuhde_name_en

Kielisuhde name in English (Language distribution 2020)

seutukunta_code

Seutukunta code (Sub-regions of Finland)

seutukunta_name_fi

Seutukunta name in Finnish (Sub-regions of Finland)

seutukunta_name_sv

Seutukunta name in Swedish (Sub-regions of Finland)

seutukunta_name_en

Seutukunta name in English (Sub-regions of Finland)

year

data year

suuralue_code

Suuralue code

suuralue_name_fi

Suuralueen nimi in Finnish (Large Areas)

suuralue_name_sv

Suuralueen nimi in Swedish (Large Areas)

suuralue_name_en

Suuralueen nimi in English (Large Areas)

sairaanhoitop_code

Sairaanhoitopiiri code (Health care districts)

sairaanhoitop_name_fi

Sairaanhoitopiiri name in Finnish (Health care districts)

sairaanhoitop_name_sv

Sairaanhoitopiiri name in Swedish (Health care districts)

sairaanhoitop_name_en

Sairaanhoitopiiri name in English (Health care districts)

nuts1_code

NUTS 2016 classification code (level 1)

nuts1_name_fi

NUTS 2016 classification name in Finnish (level 1)

nuts1_name_sv

NUTS 2016 classification name in Swedish (level 1)

nuts1_name_en

NUTS 2016 classification name in English (level 1)

nuts2_code

NUTS 2016 classification code (level 2)

nuts2_name_fi

NUTS 2016 classification name in Finnish (level 2)

nuts2_name_sv

NUTS 2016 classification name in Swedish (level 2)

nuts2_name_en

nuts2_name_en

nuts3_code

NUTS 2016 classification code (level 2)

nuts3_name_fi

NUTS 2016 classification name in Finnish (level 3)

nuts3_name_sv

NUTS 2016 classification name in Swedish (level 3)

nuts3_name_en

NUTS 2016 classification name in English (level 3)

tyossakayntial_code

Työssäkäyntialue code

tyossakayntial_name_fi

Työssäkäyntialue name in Finnish

vaalipiiri_code

Vaalipiiri code (Constituencies)

vaalipiiri_name_fi

Vaalipiiri name in Finnish (Constituencies)

vaalipiiri_name_sv

Vaalipiiri name in Swedish (Constituencies)

vaalipiiri_name_en

Vaalipiiri name in English (Constituencies)

municipality_code

Municipality code

kunta_name

Municipality name in Finnish

name_fi

Municipality name in Finnish

name_sv

Municipality name in Finnish

erva_code

Sairaanhoidon erityisvastuualueen code (Catchment areas for highly specialised medical care)

erva_name_fi

Sairaanhoidon erityisvastuualueen name in Finnish (Catchment areas for highly specialised medical care)

erva_name_sv

Sairaanhoidon erityisvastuualueen name in Swedish (Catchment areas for highly specialised medical care)

erva_name_en

Sairaanhoidon erityisvastuualueen name in English (Catchment areas for highly specialised medical care)

hyvinvointialue_name_fi

Hyvinvointialue name in Finnish (Wellbeing services counties)

hyvinvointialue_name_sv

Hyvinvointialue name in Swedish (Wellbeing services counties)

hyvinvointialue_name_en

Hyvinvointialue name in English (Wellbeing services counties)

hyvinvointialue_code

Hyvinvointialue code (Wellbeing services counties)

Source

https://data.stat.fi/api/classifications/v2/classifications


Municipality key table for 2021

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2021

Format

A data frame with 309 rows and 67 variables:

kunta

Municipality code

municipality_name_fi

Municipality name in Finnish

municipality_name_sv

Municipality name in Swedish

municipality_name_en

Municipality name in English

kuntaryhmitys_code

Tilastollinen kuntaryhmitys (Statistical grouping) code

kuntaryhmitys_name_fi

Tilastollinen kuntaryhmitys (Statistical grouping) name in Finnish

kuntaryhmitys_name_sv

Tilastollinen kuntaryhmitys (Statistical grouping) name in Swedish

kuntaryhmitys_name_en

Tilastollinen kuntaryhmitys (Statistical grouping) name in English

avi_code

Aluehallintovirasto code (Regional State Administrative Agencies)

avi_name_fi

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_sv

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_en

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

ely_code

Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre for Economic Development, Transport and the Environment)

ely_name_fi

Elinkeino-, liikenne- ja ympäristökeskuksen name in Finnish (Centre for Economic Development, Transport and the Environment)

ely_name_sv

Elinkeino-, liikenne- ja ympäristökeskuksen name in Swedish (Centre for Economic Development, Transport and the Environment)

ely_name_en

Elinkeino-, liikenne- ja ympäristökeskuksen name in English (Centre for Economic Development, Transport and the Environment)

maakunta_code

Maakunta code (Regions of Finland)

maakunta_name_fi

Maakunta name in Finnish (Regions of Finland)

maakunta_name_sv

Maakunta name in Swedish (Regions of Finland)

maakunta_name_en

Maakunta name in English (Regions of Finland)

kielisuhde_code

Kielisuhde code (Language distribution 2020)

kielisuhde_name_fi

Kielisuhde name in Finnish (Language distribution 2020)

kielisuhde_name_sv

Kielisuhde name in Swedish (Language distribution 2020)

kielisuhde_name_en

Kielisuhde name in English (Language distribution 2020)

seutukunta_code

Seutukunta code (Sub-regions of Finland)

seutukunta_name_fi

Seutukunta name in Finnish (Sub-regions of Finland)

seutukunta_name_sv

Seutukunta name in Swedish (Sub-regions of Finland)

seutukunta_name_en

Seutukunta name in English (Sub-regions of Finland)

year

data year

suuralue_code

Suuralue code

suuralue_name_fi

Suuralueen nimi in Finnish (Large Areas)

suuralue_name_sv

Suuralueen nimi in Swedish (Large Areas)

suuralue_name_en

Suuralueen nimi in English (Large Areas)

sairaanhoitop_code

Sairaanhoitopiiri code (Health care districts)

sairaanhoitop_name_fi

Sairaanhoitopiiri name in Finnish (Health care districts)

sairaanhoitop_name_sv

Sairaanhoitopiiri name in Swedish (Health care districts)

sairaanhoitop_name_en

Sairaanhoitopiiri name in English (Health care districts)

nuts1_code

NUTS 2016 classification code (level 1)

nuts1_name_fi

NUTS 2016 classification name in Finnish (level 1)

nuts1_name_sv

NUTS 2016 classification name in Swedish (level 1)

nuts1_name_en

NUTS 2016 classification name in English (level 1)

nuts2_code

NUTS 2016 classification code (level 2)

nuts2_name_fi

NUTS 2016 classification name in Finnish (level 2)

nuts2_name_sv

NUTS 2016 classification name in Swedish (level 2)

nuts2_name_en

nuts2_name_en

nuts3_code

NUTS 2016 classification code (level 2)

nuts3_name_fi

NUTS 2016 classification name in Finnish (level 3)

nuts3_name_sv

NUTS 2016 classification name in Swedish (level 3)

nuts3_name_en

NUTS 2016 classification name in English (level 3)

tyossakayntial_code

Työssäkäyntialue code

tyossakayntial_name_fi

Työssäkäyntialue name in Finnish

vaalipiiri_code

Vaalipiiri code (Constituencies)

vaalipiiri_name_fi

Vaalipiiri name in Finnish (Constituencies)

vaalipiiri_name_sv

Vaalipiiri name in Swedish (Constituencies)

vaalipiiri_name_en

Vaalipiiri name in English (Constituencies)

municipality_code

Municipality code

kunta_name

Municipality name in Finnish

name_fi

Municipality name in Finnish

name_sv

Municipality name in Finnish

erva_code

Sairaanhoidon erityisvastuualueen code (Catchment areas for highly specialised medical care)

erva_name_fi

Sairaanhoidon erityisvastuualueen name in Finnish (Catchment areas for highly specialised medical care)

erva_name_sv

Sairaanhoidon erityisvastuualueen name in Swedish (Catchment areas for highly specialised medical care)

erva_name_en

Sairaanhoidon erityisvastuualueen name in English (Catchment areas for highly specialised medical care)

hyvinvointialue_name_fi

Hyvinvointialue name in Finnish (Wellbeing services counties)

hyvinvointialue_name_sv

Hyvinvointialue name in Swedish (Wellbeing services counties)

hyvinvointialue_name_en

Hyvinvointialue name in English (Wellbeing services counties)

hyvinvointialue_code

Hyvinvointialue code (Wellbeing services counties)

Source

https://data.stat.fi/api/classifications/v2/classifications


Municipality key table for 2022

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2022

Format

A data frame with 309 rows and 73 variables:

kunta

Municipality code

municipality_name_fi

Municipality name in Finnish

municipality_name_sv

Municipality name in Swedish

municipality_name_en

Municipality name in English

kuntaryhmitys_code

Tilastollinen kuntaryhmitys (Statistical grouping) code

kuntaryhmitys_name_fi

Tilastollinen kuntaryhmitys (Statistical grouping) name in Finnish

kuntaryhmitys_name_sv

Tilastollinen kuntaryhmitys (Statistical grouping) name in Swedish

kuntaryhmitys_name_en

Tilastollinen kuntaryhmitys (Statistical grouping) name in English

avi_code

Aluehallintovirasto code (Regional State Administrative Agencies)

avi_name_fi

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_sv

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_en

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

ely_code

Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre for Economic Development, Transport and the Environment)

ely_name_fi

Elinkeino-, liikenne- ja ympäristökeskuksen name in Finnish (Centre for Economic Development, Transport and the Environment)

ely_name_sv

Elinkeino-, liikenne- ja ympäristökeskuksen name in Swedish (Centre for Economic Development, Transport and the Environment)

ely_name_en

Elinkeino-, liikenne- ja ympäristökeskuksen name in English (Centre for Economic Development, Transport and the Environment)

maakunta_code

Maakunta code (Regions of Finland)

maakunta_name_fi

Maakunta name in Finnish (Regions of Finland)

maakunta_name_sv

Maakunta name in Swedish (Regions of Finland)

maakunta_name_en

Maakunta name in English (Regions of Finland)

kielisuhde_code

Kielisuhde code (Language distribution 2020)

kielisuhde_name_fi

Kielisuhde name in Finnish (Language distribution 2020)

kielisuhde_name_sv

Kielisuhde name in Swedish (Language distribution 2020)

kielisuhde_name_en

Kielisuhde name in English (Language distribution 2020)

seutukunta_code

Seutukunta code (Sub-regions of Finland)

seutukunta_name_fi

Seutukunta name in Finnish (Sub-regions of Finland)

seutukunta_name_sv

Seutukunta name in Swedish (Sub-regions of Finland)

seutukunta_name_en

Seutukunta name in English (Sub-regions of Finland)

year

data year

suuralue_code

Suuralue code

suuralue_name_fi

Suuralueen nimi in Finnish (Large Areas)

suuralue_name_sv

Suuralueen nimi in Swedish (Large Areas)

suuralue_name_en

Suuralueen nimi in English (Large Areas)

sairaanhoitop_code

Sairaanhoitopiiri code (Health care districts)

sairaanhoitop_name_fi

Sairaanhoitopiiri name in Finnish (Health care districts)

sairaanhoitop_name_sv

Sairaanhoitopiiri name in Swedish (Health care districts)

sairaanhoitop_name_en

Sairaanhoitopiiri name in English (Health care districts)

nuts1_code

NUTS 2016 classification code (level 1)

nuts1_name_fi

NUTS 2016 classification name in Finnish (level 1)

nuts1_name_sv

NUTS 2016 classification name in Swedish (level 1)

nuts1_name_en

NUTS 2016 classification name in English (level 1)

nuts2_code

NUTS 2016 classification code (level 2)

nuts2_name_fi

NUTS 2016 classification name in Finnish (level 2)

nuts2_name_sv

NUTS 2016 classification name in Swedish (level 2)

nuts2_name_en

nuts2_name_en

nuts3_code

NUTS 2016 classification code (level 2)

nuts3_name_fi

NUTS 2016 classification name in Finnish (level 3)

nuts3_name_sv

NUTS 2016 classification name in Swedish (level 3)

nuts3_name_en

NUTS 2016 classification name in English (level 3)

vaalipiiri_code

Vaalipiiri code (Constituencies)

vaalipiiri_name_fi

Vaalipiiri name in Finnish (Constituencies)

vaalipiiri_name_sv

Vaalipiiri name in Swedish (Constituencies)

vaalipiiri_name_en

Vaalipiiri name in English (Constituencies)

municipality_code

Municipality code

kunta_name

Municipality name in Finnish

name_fi

Municipality name in Finnish

name_sv

Municipality name in Finnish

erva_code

Sairaanhoidon erityisvastuualueen code (Catchment areas for highly specialised medical care)

erva_name_fi

Sairaanhoidon erityisvastuualueen name in Finnish (Catchment areas for highly specialised medical care)

erva_name_sv

Sairaanhoidon erityisvastuualueen name in Swedish (Catchment areas for highly specialised medical care)

erva_name_en

Sairaanhoidon erityisvastuualueen name in English (Catchment areas for highly specialised medical care)

tyossakayntial_code

Työssäkäyntialue code

tyossakayntial_name_fi

Työssäkäyntialue name in Finnish

tyossakayntial_name_sv

Työssäkäyntialue name in Swedish

tyossakayntial_name_en

Työssäkäyntialue name in English

hyvinvointialue_name_fi

Hyvinvointialue name in Finnish (Wellbeing services counties)

hyvinvointialue_name_sv

Hyvinvointialue name in Swedish (Wellbeing services counties)

hyvinvointialue_name_en

Hyvinvointialue name in English (Wellbeing services counties)

hyvinvointialue_code

Hyvinvointialue code (Wellbeing services counties)

Source

https://data.stat.fi/api/classifications/v2/classifications


Municipality key table for 2023

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2023

Format

A data frame with 309 rows and 74 variables:

kunta

Municipality code

municipality_name_fi

Municipality name in Finnish

municipality_name_sv

Municipality name in Swedish

municipality_name_en

Municipality name in English

kuntaryhmitys_code

Tilastollinen kuntaryhmitys (Statistical grouping) code

kuntaryhmitys_name_fi

Tilastollinen kuntaryhmitys (Statistical grouping) name in Finnish

kuntaryhmitys_name_sv

Tilastollinen kuntaryhmitys (Statistical grouping) name in Swedish

kuntaryhmitys_name_en

Tilastollinen kuntaryhmitys (Statistical grouping) name in English

avi_code

Aluehallintovirasto code (Regional State Administrative Agencies)

avi_name_fi

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_sv

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_en

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

ely_code

Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre for Economic Development, Transport and the Environment)

ely_name_fi

Elinkeino-, liikenne- ja ympäristökeskuksen name in Finnish (Centre for Economic Development, Transport and the Environment)

ely_name_sv

Elinkeino-, liikenne- ja ympäristökeskuksen name in Swedish (Centre for Economic Development, Transport and the Environment)

ely_name_en

Elinkeino-, liikenne- ja ympäristökeskuksen name in English (Centre for Economic Development, Transport and the Environment)

maakunta_code

Maakunta code (Regions of Finland)

maakunta_name_fi

Maakunta name in Finnish (Regions of Finland)

maakunta_name_sv

Maakunta name in Swedish (Regions of Finland)

maakunta_name_en

Maakunta name in English (Regions of Finland)

kielisuhde_code

Kielisuhde code (Language distribution 2020)

kielisuhde_name_fi

Kielisuhde name in Finnish (Language distribution 2020)

kielisuhde_name_sv

Kielisuhde name in Swedish (Language distribution 2020)

kielisuhde_name_en

Kielisuhde name in English (Language distribution 2020)

seutukunta_code

Seutukunta code (Sub-regions of Finland)

seutukunta_name_fi

Seutukunta name in Finnish (Sub-regions of Finland)

seutukunta_name_sv

Seutukunta name in Swedish (Sub-regions of Finland)

seutukunta_name_en

Seutukunta name in English (Sub-regions of Finland)

year

data year

suuralue_code

Suuralue code

suuralue_name_fi

Suuralueen nimi in Finnish (Large Areas)

suuralue_name_sv

Suuralueen nimi in Swedish (Large Areas)

suuralue_name_en

Suuralueen nimi in English (Large Areas)

nuts1_code

NUTS 2016 classification code (level 1)

nuts1_name_fi

NUTS 2016 classification name in Finnish (level 1)

nuts1_name_sv

NUTS 2016 classification name in Swedish (level 1)

nuts1_name_en

NUTS 2016 classification name in English (level 1)

nuts2_code

NUTS 2016 classification code (level 2)

nuts2_name_fi

NUTS 2016 classification name in Finnish (level 2)

nuts2_name_sv

NUTS 2016 classification name in Swedish (level 2)

nuts2_name_en

nuts2_name_en

nuts3_code

NUTS 2016 classification code (level 2)

nuts3_name_fi

NUTS 2016 classification name in Finnish (level 3)

nuts3_name_sv

NUTS 2016 classification name in Swedish (level 3)

nuts3_name_en

NUTS 2016 classification name in English (level 3)

vaalipiiri_code

Vaalipiiri code (Constituencies)

vaalipiiri_name_fi

Vaalipiiri name in Finnish (Constituencies)

vaalipiiri_name_sv

Vaalipiiri name in Swedish (Constituencies)

vaalipiiri_name_en

Vaalipiiri name in English (Constituencies)

municipality_code

Municipality code

kunta_name

Municipality name in Finnish

name_fi

Municipality name in Finnish

name_sv

Municipality name in Finnish

yhteistyoalue_code

Sosiaali- ja terveydenhuollon yhteistyöalueiden koodi (Collaborative areas for healthcare and social welfare codes)

yhteistyoalue_name_fi

Sosiaali- ja terveydenhuollon yhteistyöalueet

yhteistyoalue_name_sv

Samarbetsområden för social- och hälsovården

yhteistyoalue_name_en

Collaborative areas for healthcare and social welfare

tyossakayntial_code

Työssäkäyntialue code

tyossakayntial_name_fi

Työssäkäyntialue name in Finnish

tyossakayntial_name_sv

Työssäkäyntialue name in Swedish

tyossakayntial_name_en

Työssäkäyntialue name in English

hyvinvointialue_name_fi

Hyvinvointialue name in Finnish (Wellbeing services counties)

hyvinvointialue_name_sv

Hyvinvointialue name in Swedish (Wellbeing services counties)

hyvinvointialue_name_en

Hyvinvointialue name in English (Wellbeing services counties)

hyvinvointialue_code

Hyvinvointialue code (Wellbeing services counties)

Source

https://data.stat.fi/api/classifications/v2/classifications


Municipality key table for 2024

Description

Table for aggregating municipality level data to various regional groupings

Usage

municipality_key_2024

Format

A data frame with 309 rows and 65 variables:

kunta

Municipality code

municipality_name_fi

Municipality name in Finnish

municipality_name_sv

Municipality name in Swedish

municipality_name_en

Municipality name in English

kuntaryhmitys_code

Tilastollinen kuntaryhmitys (Statistical grouping) code

kuntaryhmitys_name_fi

Tilastollinen kuntaryhmitys (Statistical grouping) name in Finnish

kuntaryhmitys_name_sv

Tilastollinen kuntaryhmitys (Statistical grouping) name in Swedish

kuntaryhmitys_name_en

Tilastollinen kuntaryhmitys (Statistical grouping) name in English

avi_code

Aluehallintovirasto code (Regional State Administrative Agencies)

avi_name_fi

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_sv

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

avi_name_en

Aluehallintovirasto name in Finnish (Regional State Administrative Agencies)

ely_code

Elinkeino-, liikenne- ja ympäristökeskuksen code (Centre for Economic Development, Transport and the Environment)

ely_name_fi

Elinkeino-, liikenne- ja ympäristökeskuksen name in Finnish (Centre for Economic Development, Transport and the Environment)

ely_name_sv

Elinkeino-, liikenne- ja ympäristökeskuksen name in Swedish (Centre for Economic Development, Transport and the Environment)

ely_name_en

Elinkeino-, liikenne- ja ympäristökeskuksen name in English (Centre for Economic Development, Transport and the Environment)

maakunta_code

Maakunta code (Regions of Finland)

maakunta_name_fi

Maakunta name in Finnish (Regions of Finland)

maakunta_name_sv

Maakunta name in Swedish (Regions of Finland)

maakunta_name_en

Maakunta name in English (Regions of Finland)

seutukunta_code

Seutukunta code (Sub-regions of Finland)

seutukunta_name_fi

Seutukunta name in Finnish (Sub-regions of Finland)

seutukunta_name_sv

Seutukunta name in Swedish (Sub-regions of Finland)

seutukunta_name_en

Seutukunta name in English (Sub-regions of Finland)

year

data year

suuralue_code

Suuralue code

suuralue_name_fi

Suuralueen nimi in Finnish (Large Areas)

suuralue_name_sv

Suuralueen nimi in Swedish (Large Areas)

suuralue_name_en

Suuralueen nimi in English (Large Areas)

nuts1_code

NUTS 2016 classification code (level 1)

nuts1_name_fi

NUTS 2016 classification name in Finnish (level 1)

nuts1_name_sv

NUTS 2016 classification name in Swedish (level 1)

nuts1_name_en

NUTS 2016 classification name in English (level 1)

nuts2_code

NUTS 2016 classification code (level 2)

nuts2_name_fi

NUTS 2016 classification name in Finnish (level 2)

nuts2_name_sv

NUTS 2016 classification name in Swedish (level 2)

nuts2_name_en

nuts2_name_en

nuts3_code

NUTS 2016 classification code (level 2)

nuts3_name_fi

NUTS 2016 classification name in Finnish (level 3)

nuts3_name_sv

NUTS 2016 classification name in Swedish (level 3)

nuts3_name_en

NUTS 2016 classification name in English (level 3)

vaalipiiri_code

Vaalipiiri code (Constituencies)

vaalipiiri_name_fi

Vaalipiiri name in Finnish (Constituencies)

vaalipiiri_name_sv

Vaalipiiri name in Swedish (Constituencies)

vaalipiiri_name_en

Vaalipiiri name in English (Constituencies)

municipality_code

Municipality code

kunta_name

Municipality name in Finnish

name_fi

Municipality name in Finnish

name_sv

Municipality name in Finnish

yhteistyoalue_code

Sosiaali- ja terveydenhuollon yhteistyöalueiden koodi (Collaborative areas for healthcare and social welfare codes)

yhteistyoalue_name_fi

Sosiaali- ja terveydenhuollon yhteistyöalueet

yhteistyoalue_name_sv

Samarbetsområden för social- och hälsovården

yhteistyoalue_name_en

Collaborative areas for healthcare and social welfare

kela_vakuutuspiiri_name_fi

Kelan vakuutuspiiri name in Finnish (Insurance District)

kela_vakuutuspiiri_code

Kelan vakuutuspiiri unofficial code (Insurance District)

kela_vakuutuspiiri_name_sv

Kelan vakuutuspiiri name in Swedish (Insurance District)

kela_vakuutuspiiri_name_en

Kelan vakuutuspiiri name in English (Insurance District)

kela_asumistukialue_name_fi

Kelan asumistuen kuntaryhmät name in Finnish (Municipality categories for housing allowance)

kela_asumistukialue_code

Kelan asumistuen kuntaryhmät unofficial code (Municipality categories for housing allowance)

kela_asumistukialue_name_sv

Kelan asumistuen kuntaryhmät name in Swedish (Municipality categories for housing allowance)

kela_asumistukialue_name_en

Kelan asumistuen kuntaryhmät name in English (Municipality categories for housing allowance)

kielisuhde_code

Kielisuhde code (Language distribution 2024)

kielisuhde_name_fi

Kielisuhde name in Finnish (Language distribution 2024)

kielisuhde_name_sv

Kielisuhde name in Swedish (Language distribution 2024)

kielisuhde_name_en

Kielisuhde name in English (Language distribution 2024)

hyvinvointialue_name_fi

Hyvinvointialue name in Finnish (Wellbeing services counties)

hyvinvointialue_name_sv

Hyvinvointialue name in Swedish (Wellbeing services counties)

hyvinvointialue_name_en

Hyvinvointialue name in English (Wellbeing services counties)

hyvinvointialue_code

Hyvinvointialue code (Wellbeing services counties)

Source

https://data.stat.fi/api/classifications/v2/classifications


Municipality level population data from Sotkanet

Description

This dataset contains population data at municipality level pulled from THL (Sotkanet) from 2000 to 2022

Usage

sotkadata_population

Format

A data frame with 7107 rows and 3 variables:

municipality_code

municipality_code

primary.value

primary.value

year

year


Municipality level Swedish speaking population numbers from Sotkanet

Description

This dataset contains Swedish speaking population figures at municipality level pulled from THL (Sotkanet) from 2000 to 2022

Usage

sotkadata_swedish_speaking_pop

Format

A data frame with 5761 rows and 3 variables:

municipality_code

municipality_code

indicator.title.fi

indicator.title.fi

primary.value

primary.value


Zipcode level population data from Statistics Finland

Description

This dataset contains population for each zipcode in Finland. Data is downloaded from Statistics Finland

Usage

statfi_zipcode_population

Format

A data frame with 3027 rows and 2 variables:

posti_alue

posti_alue

X2022

X2022


Transform a wfs_api object into a sf object.

Description

Statistics Finland WFS API response object's XML (GML) content is temporarily written on disk and then immediately read back in into a sf object.

Usage

to_sf(api_obj)

Arguments

api_obj

wfs api object

Value

sf object

Note

For internal use, not exported.

Author(s)

Joona Lehtomäki [email protected]


WFS API

Description

Requests to various WFS API.

Usage

wfs_api(base_url = "http://geo.stat.fi/geoserver/wfs", queries)

Arguments

base_url

string Api base url

queries

list List of query parameters

Details

Make a request to the spesific WFS API. The base url is http://geo.stat.fi/geoserver/wfs to which other components defined by the arguments are appended.

This is a low-level function intended to be used by other higher level functions in the package.

Note that GET requests are used using httpcache meaning that requests are cached. If you want clear cache, use httpcache::clearCache(). To turn the cache off completely, use httpcache::cacheOff()

Value

wfs_api (S3) object with the following attributes:

content

XML payload.

path

path provided to get the resonse.

response

the original response object.

Author(s)

Joona Lehtomäki [email protected]

Examples

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")))