Learn R Programming

⚠️There's a newer version (1.2.2) of this package.Take me there.

decoder

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

Installation

Install package by:

# install package devtools if not already done:
install.packages("devtools")
devtools::install_bitbucket("cancercentrum/decoder")

Vignette

See the vignette for an introduction to the package. Online: https://rawgit.com/cancercentrum/decoder/master/vignettes/decoder.html

Within R when package installed:

vignette("decoder")

Bug reports

Please report to: https://bitbucket.com/cancercentrum/decoder/issues

Copy Link

Version

Install

install.packages('decoder')

Monthly Downloads

381

Version

1.1.0

License

GPL-2

Maintainer

Erik Bulow

Last Published

May 20th, 2016

Functions in decoder (1.1.0)

icd10

ICD-10 code
hemort

hemort and hemort2 codes (geographical codes)
icd9

ICD-9
icdo

ICD-O
summary.keyvalue

Object summary for keyvalue objects
forsamling

Forsamling (parish code)
keyvalue

Coerce to a keyvalue object
snomed

Snomed code
icdo3_grov

ICD-O3 Grov
icdo3

ICD-O3
klinik

Clinic codes
figo

FIGO-stadium
sida

Sida
m_rtr

M-stadium
lan

Lan code (county code)
n_rtr

N-stadium
kommun

Kommun code (municipality code)
extra_functions

Extra functions to apply to decoded variables using decode
code

Decode codes to plain text (and vice versa)
sjukvardsomrade

Geographical healthcare areas
as.keyvalue.list

Coerce a list to keyvalue object
hsn

HSN code (Hälso- och sjukvårdsnämnd)
distrikt

Distrikt code (district code)
icd7_grov

ICD-7 Grov
sjukhus

Hospital codes
as.key

Coerce to key or value in objects in a key-value pair
region

Regional code
pad0

Pad leading zeros to character
key_value_data

Key-value datasets for code translation
patologiavdelning

Patology department codes
snomed3

Snomed 3
kon

Gender code (kon)
icd7

ICD-7
pad

PAD (C24) code
t_rtr

T-stadium
tnmgrund

Grund till TNM (patologisk/klinisk)