Decode Coded Variables to Plain Text and the Other Way Around

Main function "decode" is used to decode coded key values to plain text. Function "code" can be used to code plain text to code if there is a 1:1 relation between the two. The concept relies on 'keyvalue' objects used for translation. There are several 'keyvalue' objects included in the areas of geographical regional codes, administrative health care unit codes, diagnosis codes and more. It is also easy to extend the use by arbitrary code sets.

CRAN_Status_Badge Build status Monthly downloads Total downloads Project Status: Active - The project has reached a stable, usable state and is being actively developed.

The goal of decoder is to decode coded and perhaps cryptical variables to more understandable descriptive labels.

You can install the released version of decoder from CRAN with:


And the development version from BitBucket with:

# install.packages("devtools")

Code of conduct

Please note that the 'decoder' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.2.2 by Erik Bulow, 2 years ago

Report a bug at

Browse source code at

Authors: Erik Bulow [aut, cre]

Documentation:   PDF Manual  

GPL-2 license

Suggests dplyr, DT, testthat, knitr, rmarkdown, tidyr

Imported by coder.

See at CRAN