
Indexing to extract subsets of a 'codeVirtualArray'-class object
Source:R/VirtualArray-subset.R
VirtualArray-single-bracket-method.RdSingle bracket '[' refers to indices and names within the 'VirtualArray'-class object. Use double brackets to extract layers based on their names (in the @stack).
Arguments
- x
An object from a
VirtualArray-derived class.- i
subscript of the first dimension(rows) or vector-like subsetting.
- j
subscript of the second dimension (columns).
- ...
subscript of additional dimensions.
- drop
logicalin case the result of subsetting is a single element, should theVirtualArray-derived wrapper be dropped?