| io_table | R Documentation |
Imports or exports documented tables. Generic, with methods
that extend read.table and write.table.
io_table(x, ...)
x |
object |
... |
passed arguments |
See methods.
Other io:
io_csv(),
io_csv.character(),
io_csv.data.frame(),
io_res(),
io_res.character(),
io_res.decorated(),
io_table.character(),
io_table.data.frame(),
io_yamlet(),
io_yamlet.character(),
io_yamlet.data.frame(),
io_yamlet.yamlet()
# generate some decorated data
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)
# get a temporary filepath
out <- file.path(tempdir(), 'out.tab')
# save file using io_table (returns filepath)
foo <- io_table(x, out)
stopifnot(identical(out, foo))
# read using this filepath
y <- io_table(foo, as.is = TRUE)
# lossless round-trip
attr(x, 'source') <- NULL
rownames(x) <- NULL
rownames(y) <- NULL
stopifnot(identical(x, y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.