sf_get_class: Download statistical classifications from the Statistics...

View source: R/sf_get_classifications.R

sf_get_classR Documentation

Download statistical classifications from the Statistics Finland.

Description

Download a data.frame of classifications from the Statistics Finland webpage. The data.frame includes codes and names for a classifications.

Usage

sf_get_class(class, year, lang = "fi", as_factors = default.stringsAsFactors())

Arguments

class

a a name of the classification.

year

a year of the classification.

lang

a language code. Available "fi", "en", "sv".

as_factors

a logical. Should columns be converted to factors. The default is from options("stringsAsFactors").

Details

For all available classifications see http://tilastokeskus.fi/meta/luokitukset/index_en.html (for english) and http://tilastokeskus.fi/meta/luokitukset/ (for finnish).

Some of available classification include:

Regional

  • kunta

  • seutukunta

  • maakunta

  • kuntaryhmitys

  • tyossakayntial

Economic

  • toimiala

  • cpa

Value

a data.frame.

See Also

Other sf_class: sf_get_class_key(), sf_get_reg_key()

Examples

x <- sf_get_class(class = "kunta", year = 2016)
y <- sf_get_class("seutukunta", 2013)
z <- sf_get_class("maakunta", 2016)
t <- sf_get_class("toimiala", 2008, lang = "en")

pttry/statfitools documentation built on Feb. 2, 2025, 1:50 a.m.