R: Fast data output to disk

write.csv.raw {iotools} | R Documentation

## Fast data output to disk

### Description

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

### Usage

    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

[Package iotools version 0.2-5 Index]