writeColumnsToFiles.GenericTabularFile | R Documentation |
Read each column from a data file and exports it to a separate file. Since each column is processed independently of the others, this method is memory efficient and can handle very large data files.
## S3 method for class 'GenericTabularFile'
writeColumnsToFiles(this, destPath, filenameFmt="%s.txt", tags=NULL, columnName=NULL,
header=NULL, ..., verbose=FALSE)
destPath |
The output directory where to write the files. |
filenameFmt |
An |
tags |
An optional |
columnName |
... |
header |
An optional file header. |
... |
Not used. |
verbose |
See |
Each file generated is written atomically by first writing to a temporary file which is then renamed if successfully written. This minimizes the risk for creating incomplete files, which otherwise may occur if for instance an interrupt occurred.
Returns (invisibly) a character
vector
of all output files.
Henrik Bengtsson
For more information see GenericTabularFile
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.