readBinMatrix {msProcess}R Documentation

Read a binary file containing dimension information

Description

readBinMatrix reads a binary file containing dimension information, and the result is wrapped into a matrix.

Usage

        readBinMatrix(name, what = "double", ncol = 1e+06, ...)

Arguments

name A character string.
what A character string.
ncol An integer specifying an upper limit of the column number.
... Additional optional arguments.

Details

readBinMatrix reads a binary file containing dimension information and wrap the data into a matrix. The first element in the input file name must be an integer n, determining the length of dimensionality. The following n elements must also be integers, specifying the actual dimensionality, followed by data elements. Only the first dimension will used to determine the number of rows. This function needs user-defined ncol (the number of columns). If ncol is unknown, a pre-defined upper limit (1000000) will be used.

Value

returns a logical indicating whether the importing was successful or not.

Author(s)

Y. Alex Chen <ychen@insightful.com>

See Also

readBin, importBin2Sqlite


[Package msProcess version 1.0.5 Index]