Learn R Programming

RWeka (version 0.4-44)

Weka_converters: R/Weka File Loaders and Savers

Description

R interfaces to Weka file loaders and savers.

Usage

C45Loader(file)
XRFFLoader(file)
C45Saver(x, file, control = NULL)
XRFFSaver(x, file, control = NULL)

Value

Invisibly NULL for the savers.

A data frame containing the data from the given file for the loaders.

Arguments

file

a non-empty character string naming a file to read from or write to.

x

the data to be written, preferably a matrix or data frame. If not, coercion to a data frame is attempted.

control

an object of class Weka_control, or a character vector of control options, or NULL (default). Available options can be obtained on-line using the Weka Option Wizard WOW, or the Weka documentation.

Details

C45Loader and C45Saver use the format employed by the C4.5 algorithm/software, where data is stored in two separate .names and .data files.

XRFFLoader and XRFFSaver handle XRFF (eXtensible attribute-Relation File Format, an XML-based extension of Weka's native Attribute-Relation File Format) files.

See Also

read.arff, write.arff.