as.list-methods: Convert FileBackedNeuroVec to List

as.list,FileBackedNeuroVec-methodR Documentation

Convert FileBackedNeuroVec to List

Description

Converts a FileBackedNeuroVec object to a list of DenseNeuroVol objects.

convert SparseNeuroVec to list of DenseNeuroVol

Usage

## S4 method for signature 'FileBackedNeuroVec'
as.list(x)

## S4 method for signature 'NeuroVec'
as.list(x)

## S4 method for signature 'SparseNeuroVec'
as.list(x)

Arguments

x

the object

Details

This method creates a deferred list, where each element is a DenseNeuroVol object representing a single volume from the FileBackedNeuroVec.

Value

A deferred list of DenseNeuroVol objects.

Examples

## Not run: 
fbvec <- FileBackedNeuroVec("fmri_data.nii")

# Convert to list of volumes
vol_list <- as.list(fbvec)

## End(Not run)


bbuchsbaum/neuroim2 documentation built on Jan. 2, 2025, 3:38 p.m.