Exports a data.frame and a yamlet version of its decorations.
A wrapper for write.table.
Arguments
- x
data.frame
- file
passed to
write.table- ext
= extension for metadata equivalent of x
- meta
passed as
contoio_yamlet- useBytes
passed to
io_yamlet- default_keys
passed to
io_yamlet- ...
passed to
write.table(if accepted) and toio_yamlet
See also
Other io:
io_csv(),
io_csv.character(),
io_csv.data.frame(),
io_res(),
io_res.character(),
io_res.decorated(),
io_table(),
io_table.character(),
io_yamlet(),
io_yamlet.character(),
io_yamlet.data.frame(),
io_yamlet.yamlet()
Other interface:
canonical.decorated(),
classified.data.frame(),
decorate.character(),
decorate.data.frame(),
desolve.decorated(),
enscript.decorated(),
ggplot.decorated(),
io_csv.character(),
io_csv.data.frame(),
io_res.character(),
io_res.decorated(),
io_table.character(),
io_yamlet.character(),
io_yamlet.data.frame(),
is_parseable.default(),
mimic.default(),
modify.default(),
promote.list(),
read_yamlet(),
resolve.decorated(),
selected.default(),
write_yamlet()
Examples
example(io_table)
#>
#> io_tbl> # generate some decorated data
#> io_tbl> file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
#>
#> io_tbl> x <- decorate(file)
#>
#> io_tbl> # get a temporary filepath
#> io_tbl> out <- file.path(tempdir(), 'out.tab')
#>
#> io_tbl> # save file using io_table (returns filepath)
#> io_tbl> foo <- io_table(x, out)
#>
#> io_tbl> stopifnot(identical(out, foo))
#>
#> io_tbl> # read using this filepath
#> io_tbl> y <- io_table(foo, as.is = TRUE)
#>
#> io_tbl> # lossless round-trip
#> io_tbl> attr(x, 'source') <- NULL
#>
#> io_tbl> rownames(x) <- NULL
#>
#> io_tbl> rownames(y) <- NULL
#>
#> io_tbl> stopifnot(identical(x, y))