convertLabel {eatModel}R Documentation

Transform SPSS variable and value labels into ZKD convention.

Description

By default, 'read.spss' from the foreign package uses variable.labels as attributes of the whole data.frame, value.labels as attribute of each specific variable in the data.frame. convertLabel provides variable and value labels as variable attributes.

Usage

convertLabel(spssList , stringsAsFactors = TRUE, useZkdConvention = TRUE, 
replaceSpecialSigns = TRUE)

Arguments

spssList

An object created by 'read.spss'. Important: Using 'read.spss', to.data.frame has to be FALSE.

stringsAsFactors

Transform character variables into factors?

useZkdConvention

Logical: Use ZKD convention, i.e. variable.labels are named 'varLabel', value.labels are named 'valLabel'.

replaceSpecialSigns

Logical: Replace special signs (non-ASCII characters)?

Value

data frame.

Author(s)

Sebastian Weirich


[Package eatModel version 0.6.11 Index]