writeARFF: Write ARFF data.frame to ARFF file.

Description Usage Arguments Value Note Examples

View source: R/writeARFF.R

Description

Internally uses write.table and is therefore not much faster than RWeka's write.arff. Moreover, for large data (> 1e6 rows) the date frame is written out in chunks of 1e6 lines to speed up the write process.

Usage

1
2
3
4
5
6
7
writeARFF(
  x,
  path,
  overwrite = FALSE,
  chunk.size = 1e+06,
  relation = deparse(substitute(x))
)

Arguments

x

[data.frame]
Data to write to disk.

path

[character(1)]
Path to ARFF file with write access. Existing files will not be overwritten unless overwrite is TRUE.

overwrite

[logical(1)]
Should path be overwritten if it already exists? Default is FALSE.

chunk.size

[integer(1)]
Large datesets are split before writing out to file into chunks of size chunk.size. Default is 1e6.

relation

[character(1)]
Name of the relation in the ARFF file. Default is to guess it from the object name.

Value

Nothing.

Note

Logical columns in R are converted to categorical attributes in ARFF with levels “TRUE” and “FALSE”.

Examples

1
# see readARFF

Example output



farff documentation built on May 11, 2021, 1:06 a.m.

Related to writeARFF in farff...