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.

The decoder package holds function to decode coded variables to plain text (and vice versa).

Install package by:

# install package devtools if not already done:


See the vignette for an introduction to the package. Online:

Within R when package installed:


Bug reports

Please report to:


Reference manual

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


1.1.12 by Erik Bulow, 7 days ago

Report a bug at

Browse source code at

Authors: Erik Bulow [aut, cre]

Documentation:   PDF Manual  

GPL-2 license

Imports backports

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

Imported by incadata.

See at CRAN