writeColumnsToFiles.TabularTextFile {R.filesets}R Documentation

Read each column from a data file and exports it to a separate file

Description

Read each column from a data file and exports it to a separate file. Since each column is process independently of the others, this method is memory efficient and can handle very large data files.

Usage

## S3 method for class 'TabularTextFile':
writeColumnsToFiles(this, destPath, filenameFmt="%s.txt", tags=NULL, columnName=NULL, header=NULL, ..., verbose=FALSE)

Arguments

destPath The output directory where to write the files.
filenameFmt An sprintf() format string used to generate filenames given the fullnames (column names plus tags).
tags An optional character vector of tags added to the fullnames.
columnName ...
header An optional file header.
... Not used.
verbose See Verbose.

Value

Returns (invisibly) a character vector of all output files.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For more information see TabularTextFile.


[Package R.filesets version 0.5.3 Index]