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 = " ", ...)

Arguments

x

object which is to be saved.

file

A connection object or a character string naming a file from which to save the output.

append

logical. Only used when file is a character string.

sep

field (column) separator.

nsep

index name separator (single character) or NA if no index names are included

col.names

logical. Should a raw of column names be writen.

fileEncoding

character string: if non-empty declares the encoding to be used on a file.

...

additional parameters to pass to write.table.raw.

Details

See as.output for the details of how various data types are converted to raw vectors (or character vectors when raw is not available).

Author

Taylor Arnold and Simon Urbanek