[,AbstractSparseNeuroVec,numeric,numeric,ANY-method | R Documentation |
Extracts a subset of data from a sparse four-dimensional brain image based on provided indices.
## S4 method for signature 'AbstractSparseNeuroVec,numeric,numeric,ANY'
x[i, j, k, m, ..., drop = TRUE]
x |
An object of class |
i |
Numeric vector specifying the indices for the first dimension. |
j |
Numeric vector specifying the indices for the second dimension. |
k |
Numeric vector specifying the indices for the third dimension. Defaults to all indices if missing. |
m |
Numeric vector specifying the indices for the fourth dimension. Defaults to all indices if missing. |
... |
Additional arguments (currently unused). |
drop |
Logical indicating whether to drop dimensions of length one. Defaults to |
An array containing the extracted subset. The dimensions correspond to the lengths of i
, j
, k
, and m
. If drop
is TRUE
, dimensions of length one are removed.
## Not run:
# Assuming 'sparse_vec' is a valid SparseNeuroVec object
subset <- sparse_vec[1:10, 1:10, 1:5, 1:100]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.