Learn R Programming

codeCollection (version 0.1.3)

mkcodelabel: Add label text to code

Description

Add label text to code

Usage

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

Value

character vector of factor containing code value and text

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

Author

Jari Haukka jari.haukka@helsinki.fi

Examples

Run this code
mkcodelabel("CJB10",TPKoodit,"en",FALSE)
mkcodelabel("CJB10",TPKoodit)
mkcodelabel("I351",ICD10Koodit,"en",FALSE)

Run the code above in your browser using DataLab