write.arff: Write Data into ARFF Files

View source: R/readers.R

write.arffR Documentation

Write Data into ARFF Files

Description

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

Usage

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

Arguments

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).

References

Attribute-Relation File Format https://waikato.github.io/weka-wiki/formats_and_processing/arff/

See Also

read.arff

Examples

write.arff(iris, file = "")

RWeka documentation built on March 7, 2023, 6:21 p.m.