
Last chance! 50% off unlimited learning
Sale ends in
Save a data frame using Column Text Format
write.ctf(x, datadir = name, name = deparse(substitute(x)), ...)
data frame to write
directory to write the metadata and CTF columns
table name
further arguments to write.table.raw
NULL
, used for its side effect
read.ctf
to read CTF, write.table.raw
for the underlying functionality, and save
for writing any R objects.
# NOT RUN {
d <- file.path(tempdir(), "iris_ctf_data")
write.ctf(iris, d)
# Same object as iris, but carries around some extra metadata
iris2 <- read.ctf(d)
# This directory contains plain text files for each column in iris
list.files(d)
# Clean up
unlink(d, recursive = TRUE)
# }
Run the code above in your browser using DataLab