makeFactorLabels {multiUS} | R Documentation |
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, ...)
Arguments
x |
Data for the selected variable, see Details. |
reduce |
Wheter to reduce categories with zero frequency, default is |
... |
Arguments passed to function |
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
.
Value
Categorical variable (vector).
Author(s)
Aleš Žiberna
[Package multiUS version 1.2.3 Index]