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)
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
.
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.
Returns (invisibly) the pathname to the file written
(or the connection
written to).
write.table
.
readTable
().