Writes a data.frame to tabular text file with an optional header.
# S3 method for data.frame
writeDataFrame(data, file, path=NULL, sep="\t", quote=FALSE, row.names=FALSE,
col.names=!append, ..., header=list(), createdBy=NULL,
createdOn=format(Sys.time(), format = "%Y-%m-%d %H:%M:%S %Z"),
nbrOfRows=nrow(data), headerPrefix="# ", headerSep=": ", append=FALSE, overwrite=FALSE)
Returns (invisibly) the pathname to the file written
(or the connection
written to).
A data.frame
.
A connection
or a filename to write to.
The directory where the file will be written.
Additional arguments
passed to write.table
.
An optional named list
of header rows to be written
at the beginning of the file. If NULL
, no header will be written.
If non-NULL
, common header
rows to be added to the header.
A character
string specifying the prefix of each
header row.
A character
string specifying the character
separating the header name and header values.
If TRUE
, the output is appended to an existing file.
If TRUE
, an existing file is overwritten.
Henrik Bengtsson
write.table
.
readTable
().