write.arff: Write a data.frame onto an ARFF file

Description Usage Arguments Value Examples

View source: R/write.R

Description

Takes a data frame and records it in ARFF (Attribute-Relation File Format).

Usage

1
2
write.arff(x, relation = NULL, types = NULL, file = "",
  sparse = FALSE, append = FALSE, ...)

Arguments

x

A data.frame

relation

Name of the dataset (optional, it may be inferred from the relation attribute or the name of the variable passed as argument)

types

A character vector indicating the type of each variable (optional, may be inferred from the attributes attribute or computed from the class of each variable)

file

Name of the file where the data is to be written. Use "" to write to standard output

sparse

Logical: write in sparse format?

append

Logical: append to an existing file?

...

Extra parameters for internal functions

Value

Invisibly, the name of the file.

Examples

1
2
3
library(yarr)

write.arff(iris, "iris", file = tempfile())

yarr documentation built on Aug. 10, 2019, 5:28 p.m.