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 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.13 by Erik Bulow, 8 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, webshot

Imported by incadata.

See at CRAN