Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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.

Value

Invisibly NULL for the savers.

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

See Also


RWeka

R/Weka Interface

v0.4-43
GPL-2
Authors
Kurt Hornik [aut, cre] (<https://orcid.org/0000-0003-4198-9911>), Christian Buchta [ctb], Torsten Hothorn [ctb], Alexandros Karatzoglou [ctb], David Meyer [ctb], Achim Zeileis [ctb] (<https://orcid.org/0000-0003-0918-3766>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.