Converting "values variables" into "modalities variables"
Source:R/QR_functions.R
recode_indicator_num.RdTo transform variables from the values matrix into categorical variables that can be added into the modalities matrix.
Arguments
- x
a
QR_matrixormQR_matrixobject.- variable_name
a vector of strings containing the names of the variables to convert.
- breaks
see function
cut.- labels
see function
cut.- ...
other parameters of the
cutfunction.
Value
The function recode_indicator_num() returns the same object,
enhanced with the chosen indicator. So if the input x is a QR_matrix,
an object of class QR_matrix is returned. If the input x is a
mQR_matrix, an object of class mQR_matrix is returned.
See also
Other var QR_matrix manipulation:
QR_var_manipulation,
add_indicator()