write.ctf: Write Data Frame To CTF

Description Usage Arguments Value See Also Examples

View source: R/write.R

Description

Save a data frame using Column Text Format

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

ctf documentation built on July 7, 2021, 9:07 a.m.