write.ctf {ctf}R Documentation

Write Data Frame To CTF

Description

Save a data frame using Column Text Format

Usage

write.ctf(x, datadir = name, name = deparse(substitute(x)), ...)

Arguments

x

data frame to write

datadir

directory to write the metadata and CTF columns

name

table name

...

further arguments to write.table.raw

Value

NULL, used for its side effect

See Also

read.ctf to read CTF, write.table.raw for the underlying functionality, and save for writing any R objects.

Examples

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)

[Package ctf version 0.1.0 Index]