extractor4d {neuroim2} | R Documentation |
Array-like access for 4-dimensional data structures
Description
This generic function provides array-like access for 4-dimensional data structures. It allows for flexible indexing and subsetting of 4D arrays or array-like objects.
Usage
## S4 method for signature 'ArrayLike4D,matrix,missing,ANY'
x[i, j, k, m, ..., drop = TRUE]
## S4 method for signature 'ArrayLike4D,numeric,numeric,ANY'
x[i, j, k, m, ..., drop = TRUE]
## S4 method for signature 'ArrayLike4D,numeric,missing,ANY'
x[i, j, k, m, ..., drop = TRUE]
## S4 method for signature 'ArrayLike4D,integer,missing,ANY'
x[i, j, k, m, ..., drop = TRUE]
## S4 method for signature 'ArrayLike4D,missing,missing,ANY'
x[i, j, k, m, ..., drop = TRUE]
## S4 method for signature 'ArrayLike4D,missing,numeric,ANY'
x[i, j, k, m, ..., drop = TRUE]
Arguments
x |
The 4-dimensional object to be accessed. |
i |
First index or dimension. |
j |
Second index or dimension. |
k |
Third index or dimension. |
m |
Fourth index or dimension. |
... |
Additional arguments passed to methods. |
drop |
Logical. If TRUE, the result is coerced to the lowest possible dimension. |
Value
A subset of the input object, with dimensions depending on the indexing and the 'drop' parameter.
[Package neuroim2 version 0.8.1 Index]