The function transforms a numeric varibale into categorical one, based on the attribute data from a given SPSS file.
makeFactorLabels(x, reduce = TRUE, ...)Categorical variable (vector).
Data for the selected variable, see Details.
Wheter to reduce categories with zero frequency, default is TRUE.
Arguments passed to function factor.
Aleš Žiberna
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.