as.vector,SparseNeuroVol-method: Convert SparseNeuroVol to a base vector
Description
Supplies an `as.vector` S4 method that flattens sparse volumes to a dense
vector, keeping the same voxel ordering as `as.array`.
Usage
# S4 method for SparseNeuroVol
as.vector(x, mode = "any")
Value
A vector of length `prod(dim(x))`.
Arguments
- x
A `SparseNeuroVol` instance.
- mode
Optional coercion mode (see [base::as.vector]).