ff
objects, which are numerical vectors stored in a flat file.
The maximum size of the flat file is 16 GB on 32-bit platforms; however possible limitations of the file system apply.ff(file, length = 0, pagesize = getdefaultpagesize(), readonly = FALSE)
## S3 method for class 'ff':
[(x, index)
## S3 method for class 'ff':
[(x, index) <- value
## S3 method for class 'ff':
dim(x)
## S3 method for class 'ff':
length(x)
## S3 method for class 'ff':
sample(x, size, replace = FALSE, prob = NULL)
## S3 method for class 'ff':
print(x, \dots)
ff
object.prob
is ignored in the ff
.ff
objects are held by external pointers, they are copied as a reference.
The connection life-time of the ff
object and its implementation part (written in C++) is under control of the garbage collector ff
object, one should call the garbage collector after deleting the reference(!).
a <- ff("foo.ff", 8192) # create a big vector
a[1:10] <- rnorm(10) # set data cells
a[1:10] # get data cells
Run the code above in your browser using DataLab