| read.dataset {SDEFSR} | R Documentation | 
Reads a KEEL, ARFF or CSV data format file.
Description
This function reads a KEEL (.dat), ARFF (.arff) or CSV dataset file and store the information
in a SDEFSR_Dataset class.
Usage
read.dataset(file, sep = ",", quote = "\"", dec = ".", na.strings = "?")
Arguments
| file | The path of the file to read | 
| sep | The separator character to use | 
| quote | The character used to take quotes | 
| dec | The character used to define decimal characters | 
| na.strings | The character to detect lost data | 
Details
A KEEL data file must have the following structure:
- @relation: Name of the data set 
- @attribute: Description of an attribute (one for each attribute) 
- @inputs: List with the names of the input attributes 
- @output: Name of the output attribute (Not used in this algorithms implementation) 
- @data: Starting tag of the data 
The rest of the file contains all the examples belonging to the data set, expressed in comma sepparated values format. ARFF file format is a well-know dataset format from WEKA data mining tool. CSV is a format which means comma-separated values. Where each examples is on a line and each value of the variables of the examples are separated by commas.
Author(s)
Angel M. Garcia <agvico@ujaen.es>
References
J. Alcala-Fdez, A. Fernandez, J. Luengo, J. Derrac, S. Garcia, L. Sanchez, F. Herrera. KEEL Data-Mining Software Tool: Data Set Repository, Integration of Algorithms and Experimental Analysis Framework. Journal of Multiple-Valued Logic and Soft Computing 17:2-3 (2011) 255-287.
See Also
KEEL Dataset Repository (Standard Classification): https://sci2s.ugr.es/keel/category.php?cat=clas
Examples
    ## Not run: 
       Reads a KEEL dataset from a file.
       read.dataset(file = "C:\KEELFile.dat")
       read.dataset(file = "C:\KEELFile.dat", nLabels = 7)
       
     Reads an ARFF dataset from a file.
       read.dataset(file = "C:\ARFFFile.arff")
       read.dataset(file = "C:\ARFFFile.arff", nLabels = 7)
    
## End(Not run)