Learn R Programming

arules (version 0.2-6)

WRITE: Writes transactions or associations to disk

Description

Provides the generic function WRITE and the S4 methods to write transactions or associations to disk.

Usage

WRITE(x, ...)

Arguments

x
the object.
...
further arguments passed on to write.table.

Details

WRITE first uses coercion to data.frame to obtain a printable form of x and then uses write.table to write the data to disk.

See Also

code{write.table}, code{transactions-class}, code{associations-class}

Examples

Run this code
data("Epub")

### write the formated result to screen
WRITE(Epub[1:5])

### write the formated result to file
WRITE(Epub[1:5], file = "data")

unlink("data") # tidy up

Run the code above in your browser using DataLab