DelayedOp-class {DelayedArray} | R Documentation |
In a DelayedArray object the delayed operations are stored as a tree of DelayedOp objects. Each node in the tree is represented by a DelayedOp object.
DelayedOp objects are used inside DelayedArray objects and are not intended to be manipulated directly by the end user.
showtree
and simplify
can be used to visualize
and simplify this tree.
isNoOp(x)
x |
A DelayedSubset, DelayedAperm, or DelayedDimnames object. |
6 types of nodes are currently supported. Each type is a DelayedOp subclass:
Node type Outdegree Operation --------------------------------------------------------------------- DelayedSubset 1 Multi-dimensional single bracket subsetting DelayedAperm 1 Extended aperm() (can drop dimensions) DelayedUnaryIsoOp 1 Unary op that preserves the geometry DelayedDimnames 1 Set dimnames DelayedNaryIsoOp N N-ary op that preserves the geometry DelayedAbind N abind()
All the nodes are array-like objects that must comply with the seed
contract i.e. they must support dim()
, dimnames()
, and
extract_array()
. See ?extract_array
for more
information about the seed contract.
isNoOp()
can be called on a DelayedSubset, DelayedAperm, or
DelayedDimnames object and will return TRUE
if the object
represents a no-op.
The DelayedOp virtual class and its 6 concrete subclasses are for internal use only and are not exported.
DelayedArray objects.
showtree
to visualize, simplify, and inspect the
tree of delayed operations in a DelayedArray object.