write.csv.raw: Fast data output to disk

Description Usage Arguments Details Author(s)

View source: R/local.R

Description

A fast replacement of write.csv and write.table which saves the data as a raw vector rather than a character one.

Usage

1
2
3
4
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(s)

Taylor Arnold and Simon Urbanek


iotools documentation built on July 23, 2021, 9:07 a.m.