writeBinBlocks {msProcess} | R Documentation |
Functions to write a vector x
into a series of binary files.
writeBinBlocks(x, pattern, maxRows=10000, path=".", what = c("double", "integer", "character"), append = FALSE, verbose = TRUE)
x |
A character string to specify the name of the binary file. |
path |
A character string to specify the path to input binary file. |
what |
A character string denoting the mode of the data to be read,
one of: '"double", "integer", "character"'. |
append |
A logical value. If FALSE ,
then existing files will be overwritten. Otherwise, data will be appended
onto the existing file. |
pattern |
A character string to specify
the common prefix for a series of binary files. |
maxRows |
An integer to specify the maximum number of rows allowed
in a single binary file. See details for more information. |
verbose |
A logical value specifying whether or not to print verbose messages. |
To facilitate handling large data, function writeBinBlocks
is provided,
in which a long x
is split into several small parts, each containing less than
maxRows
rows. A series of binary files, like [pattern
]1,
[pattern
]2, [pattern
]3, ..., will be thus generated.
returns an invisible NULL
.
Y. Alex Chen <ychen@insightful.com>
writeBin, readBinMatrix, importBin2Sqlite