View source: R/makeFactorLabels.R
| makeFactorLabels | R Documentation |
The function transforms a numeric varibale into categorical one, based on the attribute data from a given SPSS file.
makeFactorLabels(x, reduce = TRUE, ...)
x |
Data for the selected variable, see Details. |
reduce |
Wheter to reduce categories with zero frequency, default is |
... |
Arguments passed to function |
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.
Categorical variable (vector).
Aleš Žiberna
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.