read.dataset: Reads a KEEL, ARFF or CSV data format file.

Description Usage Arguments Details Author(s) References See Also Examples

Description

This function reads a KEEL (.dat), ARFF (.arff) or CSV dataset file and store the information in a SDEFSR_Dataset class.

Usage

1
2
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:

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): http://sci2s.ugr.es/keel/category.php?cat=clas

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
    ## 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)
    

SIMIDAT/SDEFSR documentation built on May 9, 2019, 11:13 a.m.