This function checks if a data set is a data frame or a matrix and it saves the data as a matrix of integers, and stores the names of rows, colums and levels for each variable as vectors to use them later.
Usage
CheckDataSet(datanom)
Arguments
datanom
It can be a data frame or a matrix.
Value
An object of class "data.ordinal". This has components:
datanom
Matrix of integers with the values of the variables
RowNames
Vector with the names of the rows
ColumNames
Vector with the names of the variables
LevelNames
Levels of each variable
Details
The function checks if some variable has NA values and it deletes the corresponding row.
It also checks for missing categories and recodifies the variable keeping the original labels for levels.