DelayedDataFrame | R Documentation |
The DelayedDataFrame
class extends the
DataFrame
class and supports the storage of any type of
object (with ‘length’ and ‘[’ methods) as columns.
the lazyIndex
slot getter and setter for
DelayedDataFrame
object.
the coercion method between DataFrame
and
DelayedDataFrame
objects.
DelayedDataFrame(..., row.names = NULL, check.names = TRUE)
## S4 method for signature 'DelayedDataFrame'
lazyIndex(x)
.from_DataFrame_to_DelayedDataFrame(from)
.from_DelayedDataFrame_to_DFrame(from, to = "DFrame", strict = TRUE)
lazyIndex(x) <- value
## S4 replacement method for signature 'DelayedDataFrame'
lazyIndex(x) <- value
... |
the arguments to pass into construction of a new
|
row.names |
the |
check.names |
logical. If ‘TRUE’ then the names of the
variables in the |
x |
the |
from |
the object to be converted. |
to |
the class of object to be returned by coercion. |
strict |
Logical. Whether to force return a |
value |
the new value of |
The DelayedDataFrame
inherits from DataFrame
and behaves very similarily in terms of construction,
subsetting, splitting, combining, etc. The most notable
exception is that The additional slot of lazyIndex
,
enables DelayedArray
(with different back-ends) columns
to share indexes when possible.
Please be very careful to use this replace method for
lazyIndex
slot. Because it only replace the
lazyIndex
slot, but not necessarily the nrow
and
rownames
slots. If you want to have synchronized
subsetting for all slots, the [
method should be used.
lazyIndex<-
: the DelayedDataFrame
object with
new value of lazyIndex
slot.
DDF <- DelayedDataFrame(letters, LETTERS)
DDF1 <- DDF[1:10,]
DDF1
lazyIndex(DDF1)
as(DDF1, "DataFrame")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.