View source: R/recode_regions.R
recode_region | R Documentation |
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.
recode_region(x, to, from = NULL, year = NULL, offline = TRUE)
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 |
TODO: if to not specified could just change codes to names and vice versa
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.