Skip to contents

Generic function to convert various fMRI dataset types to matrix_dataset objects. Provides a unified interface for getting matrix-based representations.

Usage

as.matrix_dataset(x, ...)

Arguments

x

An fMRI dataset object

...

Additional arguments passed to methods

Value

A matrix_dataset object with the same data as the input

Details

This function converts different dataset representations to the standard matrix_dataset format, which stores data as a matrix with timepoints in rows and voxels in columns. This is useful for algorithms that require matrix operations or when a consistent data format is needed.

See also

matrix_dataset for creating matrix datasets, get_data_matrix for extracting data as matrix

Examples

# \donttest{
# Convert various dataset types to matrix_dataset
# (example requires actual dataset object)
# mat_ds <- as.matrix_dataset(some_dataset)
# }