Jump to content

Data Mining Algorithms In R/Packages/RWeka/Write.arff

From Wikibooks, open books for an open world

Description

[edit | edit source]

Writes data into Weka Attribute-Relation File Format (ARFF) files.

Usage

[edit | edit source]

write.arff(x, file, eol = "\n")

Arguments

[edit | edit source]

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

file, either a character string naming a file, or a connection. "" indicates output to the standard output connection.

eol, the character(s) to print at the end of each line (row).

Example

[edit | edit source]
   write.arff(iris, file = "")