Description Usage Arguments Details Value Author(s) See Also Examples
Creates a SDEFSR_Dataset
object from a data.frame
and create fuzzy labels for numerical variables too.
1 2 3 4 5 6 7 |
data |
A |
relation |
A string that indicate the name of the relation. |
names |
An optional character vector indicating the name of the attributes. |
types |
An optional character vector indicating 'c' if variable is categorical, 'r' if is real and 'e' if it is an integer |
classNames |
An optional character vector indicating the values of the target class. |
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.
A SDEFSR_Dataset
object with all the information of the dataset.
Angel M Garcia <amgv0009@red.ujaen.es>
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.