Learn R Programming

neuroim2 (version 0.8.5)

as.array,SparseNeuroVol-method: Convert SparseNeuroVol to a base array

Description

Provides an `as.array` S4 method so sparse volumes can be coerced with the same syntax used for dense objects.

Usage

# S4 method for SparseNeuroVol
as.array(x, ...)

Value

A dense array with voxel values at their spatial locations and zeros elsewhere.

Arguments

x

A `SparseNeuroVol` instance.

...

Additional arguments (currently ignored).