readBinMatrix {msProcess} | R Documentation |
readBinMatrix
reads a binary file containing dimension information,
and the result is wrapped into a matrix.
readBinMatrix(name, what = "double", ncol = 1e+06, ...)
name |
A character string. |
what |
A character string. |
ncol |
An integer specifying an upper limit of the column number. |
... |
Additional optional arguments. |
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.
returns a logical indicating whether the importing was successful or not.
Y. Alex Chen <ychen@insightful.com>