Skip to contents

Converts a NeuroVecSeq to a dense voxel-by-time 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 'DenseNeuroVec'
as.matrix(x)

# S4 method for class 'NeuroVecSeq'
as.matrix(x, ...)

# S4 method for class 'ROIVec'
as.matrix(x)

# S4 method for class 'AbstractSparseNeuroVec'
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 TxK matrix of cluster time-series. "voxel" is reserved for future use.

...

Additional arguments

Value

A matrix with one row per voxel and one column per time point.

A matrix representation of the object