mkcodelabel {codeCollection}R Documentation

Add label text to code

Description

Add label text to code

Usage

mkcodelabel(x, codebook, lang = "fi", as.factor.B = TRUE)

Arguments

x

code value (character)

codebook

data frame containing codes and text

lang

language used, possible values "fi", "en", and "sv"

as.factor.B

should value be converted to factor

Value

character vector of factor containing code value and text

Author(s)

Jari Haukka jari.haukka@helsinki.fi

Examples

mkcodelabel("CJB10",TPKoodit,"en",FALSE)
mkcodelabel("CJB10",TPKoodit)
mkcodelabel("I351",ICD10Koodit,"en",FALSE)

[Package codeCollection version 0.1.3 Index]