Writes data into Weka Attribute-Relation File Format (ARFF) files.
write.arff(x, file, eol = "\n", relation = deparse(substitute(x)))
the data to be written, preferably a matrix or data frame. If not, coercion to a data frame is attempted.
either a character string naming a file, or a connection.
"" indicates output to the standard output connection.
the character(s) to print at the end of each line (row).
The name of the relation to be written in the file.
relation will be passed through
writing to the file, in an attempt to it them acceptable to Weka, and
column names what do not start with an alphabetic character will have
However, the references say that ARFF files are ASCII files, and that encoding is not enforced.
Attribute-Relation File Format https://waikato.github.io/weka-wiki/formats_and_processing/arff/.
read.arff in package
RWeka which provide some support for logicals via conversion to
or from factors.