Creates an AromaTabularBinaryFile of a certain dimension and data column types.
## Static method (use this):
## AromaTabularBinaryFile$allocate(filename, path=NULL, nbrOfRows, types, sizes,
## signeds=TRUE, defaults=NA, comment=NULL, overwrite=FALSE, skip=FALSE, footer=list(),
## ..., verbose=FALSE)## Don't use the below:
# S3 method for AromaTabularBinaryFile
allocate(static, filename, path=NULL, nbrOfRows, types, sizes, signeds=TRUE, defaults=NA,
comment=NULL, overwrite=FALSE, skip=FALSE, footer=list(), ..., verbose=FALSE)
Returns a AromaTabularBinaryFile
object.
The filename of the new file.
The path where to store the new file.
An integer
specifying the number of rows to allocate.
A character
vector
specifying the data type of each
column. The length specifies the number of columns to allocate.
An integer
vector
of values in {1,2,4,8} specifying
the size of each column (data type).
An logical
vector
specifying if the data types in each
column is signed or not.
An optional list
(or vector
) containing default
values for each column.
An optional character
string written to the file header.
If TRUE
, an existing file is overwritten, otherwise not.
If TRUE
and overwrite=TRUE
, any existing file is
returned as is.
An optional list
of attributes written (as character
strings) to the file footer.
Not used.
Verbose
.
Henrik Bengtsson
For more information see AromaTabularBinaryFile
.