dbwriteBinDim: Write a series of binary files containing data blocks

Description Usage Arguments Details Value Author(s) See Also

Description

Functions to write a vector x into a series of binary files.

Usage

1
2
writeBinBlocks(x, pattern, maxRows=10000, path=".", what = c("double", "integer", "character"), 
	append = FALSE, verbose = TRUE)

Arguments

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.

Details

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.

Value

returns an invisible NULL.

Author(s)

Y. Alex Chen <ychen@insightful.com>

See Also

writeBin, readBinMatrix, importBin2Sqlite


zeehio/msProcess documentation built on May 4, 2019, 10:15 p.m.