A fast replacement of write.csv
and write.table
which
saves the data as a raw vector rather than a character one.
write.csv.raw(x, file = "", append = FALSE, sep = ",", nsep="\t",
col.names = !is.null(colnames(x)), fileEncoding = "")write.table.raw(x, file = "", sep = " ", ...)
object which is to be saved.
A connection object or a character string naming a file from which to save the output.
logical. Only used when file is a character string.
field (column) separator.
index name separator (single character) or NA
if no
index names are included
logical. Should a raw of column names be writen.
character string: if non-empty declares the encoding to be used on a file.
additional parameters to pass to write.table.raw
.
Taylor Arnold and Simon Urbanek
See as.output
for the details of how various data types are
converted to raw vectors (or character vectors when raw is not available).