convert a NeuroVec
to a matrix
convert a ROIVec
to a matrix
Convert to Matrix
Usage
# S4 method for class 'ClusteredNeuroVec'
as.matrix(x, by = c("cluster", "voxel"))
# S4 method for class 'MappedNeuroVec'
as.matrix(x)
# S4 method for class 'NeuroVec'
as.matrix(x)
# S4 method for class 'NeuroVec'
as.matrix(x)
# S4 method for class 'DenseNeuroVec'
as.matrix(x)
# S4 method for class 'ROIVec'
as.matrix(x)
# S4 method for class 'SparseNeuroVec'
as.matrix(x, ...)
Arguments
- x
The object to convert to a matrix
- by
For ClusteredNeuroVec: controls the conversion target.
Defaults to "cluster" to return a T×K matrix of cluster time-series.
"voxel" is reserved for future use.
- ...
Additional arguments
Value
A matrix representation of the object