writeDataFrame.data.frame {R.utils} | R Documentation |
Writes a data.frame to tabular text file
Description
Writes a data.frame to tabular text file with an optional header.
Usage
## S3 method for class '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)
Arguments
data |
A |
file |
A |
path |
The directory where the file will be written. |
sep , quote , row.names , col.names , ... |
Additional arguments
passed to |
header |
An optional named |
createdBy , createdOn , nbrOfRows |
If non- |
headerPrefix |
A |
headerSep |
A |
append |
If |
overwrite |
If |
Value
Returns (invisibly) the pathname to the file written
(or the connection
written to).
Author(s)
Henrik Bengtsson
See Also
write.table
.
readTable
().