Learn R Programming

OrdinalLogisticBiplot (version 0.4)

CheckDataSet: Check a data set.

Description

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.

Examples

Run this code
data(LevelSatPhd)
dataChecked = CheckDataSet(LevelSatPhd)

Run the code above in your browser using DataLab