convertLabel: Transform SPSS variable and value labels into ZKD convention.

Description Usage Arguments Value Author(s)

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

1
2
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


eatModel documentation built on May 2, 2019, 6:49 p.m.