The information of the data.frame must be stored with instances in rows and variables in columns
If you dont specify any of the optional parameter the function try to obtain them automatically.For 'names'
if it is NA, the function takes the name of the columns by colnames
.
For 'types'
if it is NA, the function takes the type of an attribute asking the type of the column of the data.frame.
If it is 'character'
it is assumed that it is categorical, and if 'numeric'
it is assumed that it is a real number.
PLEASE, PAY ATTENTION TO THIS WAY OF WORK. It can cause tranformation errors taking a numeric variable as categorical or vice-versa.
For 'classNames'
if it is NA, the function returns unique values of the last attribute of the data.frame that is considered the class attribute.