Learn R Programming

neuroim2 (version 0.8.5)

as.matrix,ClusteredNeuroVec-method: convert a NeuroVec to a matrix

Description

convert a NeuroVec to a matrix

convert a ROIVec to a matrix

Convert to Matrix

Usage

# S4 method for ClusteredNeuroVec
as.matrix(x, by = c("cluster", "voxel"))

# S4 method for MappedNeuroVec as.matrix(x)

# S4 method for NeuroVec as.matrix(x)

# S4 method for DenseNeuroVec as.matrix(x)

# S4 method for ROIVec as.matrix(x)

# S4 method for SparseNeuroVec as.matrix(x, ...)

Value

A matrix representation of the object

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