recode_region: Recode regional variables

View source: R/recode_regions.R

recode_regionR Documentation

Recode regional variables

Description

Recodes regional variables by e.g. changing kunnat to seutukunnat or changing names to codes and vice versa. A wrapper for key_recode() that uses the get_regionkey() to produce the key.

Usage

recode_region(x, to, from = NULL, year = NULL, offline = TRUE)

Arguments

x

data.frame, the input vector that contains the regional variable.

to

character, the desired target in the classification key.

from

character, the original classification key.

year

character or numeric, the year of the.

offline

logical, whether works offline with package data. Defaults to TRUE.

Details

TODO: if to not specified could just change codes to names and vice versa

Value

data.frame


pttry/statficlassifications documentation built on Sept. 25, 2024, 9:30 a.m.