Learn R Programming

multiUS (version 1.2.3)

makeFactorLabels: Make factor labels

Description

The function transforms a numeric varibale into categorical one, based on the attribute data from a given SPSS file.

Usage

makeFactorLabels(x, reduce = TRUE, ...)

Value

Categorical variable (vector).

Arguments

x

Data for the selected variable, see Details.

reduce

Wheter to reduce categories with zero frequency, default is TRUE.

...

Arguments passed to function factor.

Author

Aleš Žiberna

Details

Data have to be imported by using the foreign::read.spss function. The use of the function make sence when the parameter use.value.lables in the function read.spss is set to FALSE.