chunk.bit {ff} | R Documentation |
chunking method for ffdf objects automatically considering RAM requirements from recordsize as calculated from sum(.rambytes[vmode])
## S3 method for class 'bit' chunk(x, RECORDBYTES = .rambytes["logical"], BATCHBYTES = getOption("ffbatchbytes"), ...)
x |
|
RECORDBYTES |
optional integer scalar representing the bytes needed to process a single element of the bit vector |
BATCHBYTES |
integer scalar limiting the number of bytes to be processed in one chunk, default from |
... |
further arguments passed to |
A list with ri
indexes each representing one chunk
Jens Oehlschlägel
n <- 1000 x <- bit(n) ceiling(n / (300 %/% sum(.rambytes["logical"]))) chunk(x, BATCHBYTES=300) ceiling((n/2) / (100 %/% sum(.rambytes["logical"]))) chunk(x, from=1, to = n/2, BATCHBYTES=100) rm(x, n)