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://mran.revolutionanalytics.com/web/packages/decoder/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

341

Version

1.1.11

License

GPL-2

Maintainer

Erik Bulow

Last Published

February 11th, 2017

Functions in decoder (1.1.11)

icd7_grov

ICD-7 Grov
icd10

ICD-10 code
figo

FIGO-stadium
extra_functions

Extra functions to apply to decoded variables using decode
as.keyvalue.list

Coerce a list to keyvalue object
icd7

ICD-7
distrikt

Distrikt code (district code)
icd9

ICD-9
forsamling

Forsamling (parish code)
hemort

hemort and hemort2 codes (geographical codes)
keyvalue

Coerce to a keyvalue object
kommun

Kommun code (municipality code)
kon

Gender code (kon)
as.key

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

Clinic codes
icdo3

ICD-O3
icdo

ICD-O
icdo3_grov

ICD-O3 Grov
lan

Lan code (county code)
m_rtr

M-stadium
pad

PAD (C24) code
sida

Sida
rc

Codes used by RC's kvartalen
sjukhus_par

Hospital codes used by Socialstyrelsen and the National Patient Register
sjukhus

Hospital codes
pad0

Pad leading zeros to character
n_rtr

N-stadium
sjukhus_inca

Hospital codes used by INCA
patologiavdelning

Patology department codes
region

Regional code
t_rtr

T-stadium
tnmgrund

Grund till TNM (patologisk/klinisk)
snomed3

Snomed 3
summary.keyvalue

Object summary for keyvalue objects
sjukvardsomrade

Geographical healthcare areas
snomed

Snomed code