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: install.packages("devtools") devtools::install_bitbucket("cancercentrum/decoder")
See the vignette for an introduction to the package. Online: https://mran.revolutionanalytics.com/web/packages/decoder/vignettes/decoder.html
Within R when package installed:
Please report to: https://bitbucket.com/cancercentrum/decoder/issues