matter_df-class {matter} | R Documentation |
The matter_df
class implements out-of-memory data frames.
The columns may be matter
objects or ordinary R objects. If they are ordinary R objects, those columns remain in memory. Columns that should be stored out-of-memory should be manually coerced to matter
objects, if they are not already.
Calling as.matter()
on an ordinary R data.frame
will do this automatically.
## Instance creation matter_df(..., row.names = NULL) ## Additional methods documented below
... |
These arguments become the data columns or data frame variables. They should be named. |
row.names |
A character vector giving the row names. |
An object of class matter_df
.
data
:This slot stores the information about locations of the data in virtual memory and within the files.
datamode
:The storage mode of the accessed data when read into R. This is a 'character' vector of with possible values 'raw', 'logical', 'integer', 'numeric', or 'virtual'.
paths
:A 'character' vector of the paths to the files where the data are stored.
filemode
:The read/write mode of the files where the data are stored. This should be 'r' for read-only access, or 'rw' for read/write access.
chunksize
:The maximum number of elements which should be loaded into memory at once. Used by methods implementing summary statistics and linear algebra. Ignored when explicitly subsetting the dataset.
length
:The length of the data.
dim
:Either 'NULL' for vectors, or an integer vector of length one of more giving the maximal indices in each dimension for matrices and arrays.
names
:The names of the data elements for vectors.
dimnames
:Either 'NULL' or the names for the dimensions. If not 'NULL', then this should be a list of character vectors of the length given by 'dim' for each dimension. This is always 'NULL' for vectors.
ops
:Delayed operations to be applied on atoms.
matter_df
instances can be created through matter_df()
or matter()
.
Standard generic methods:
x$name, x$name <- value
:Get or set a single column.
x[[i]], x[[i]] <- value
:Get or set a single column.
x[i], x[i] <- value
:Get or set multiple columns.
x[i, j, ..., drop], x[i, j] <- value
:Get or set the elements of the data frame.
Kylie A. Bemis
x <- matter_df(a=as.matter(1:10), b=11:20, c=as.matter(letters[1:10])) x[] x[1:2] x[[2]] x[["c"]] x[,"c"] x[1:5,c("a","c")] x$c x$c[1:5]