ffm objects, which are multi-dimensional numeric arrays stored in a flat file.x <- ffm(file, dim = 0, pagesize = getdefaultpagesize(), readonly = FALSE)
## S3 method for class 'ffm':
[(x, ...)
## S3 method for class 'ffm':
[(x, ...) <- value
## S3 method for class 'ffm':
dim(x)
## S3 method for class 'ffm':
length(x)
## S3 method for class 'ffm':
print(x, \dots)ffm object.ffm objects is 64 bit, even on 32-bit platforms (if supported by the virtual file system).
A ffm object is stored on two files, ffm objects are held by external pointers, they are copied as a reference.
The connection life-time of the ffm object and its implementation part (written in C++) is under control of the garbage collector ffm object, one should call the garbage collector after deleting the reference(!).
b <- ffm("foom",c(10,20,30)) # create a multi-dimensional vector
b[1,2,3] <- 23 # set data cell
b[1,2,3] # set data cell
b[1:5,,] <- rnorm(20) # complex addressing
b[1,,] # show first rowRun the code above in your browser using DataLab