Skip to contents

Generic function for reading neuroimaging datasets from HDF5 format

Usage

read_dataset(x, ...)

# S4 method for class 'H5File'
read_dataset(x, type = NULL, ...)

Arguments

x

The file path or H5File object to read from

...

Additional arguments passed to methods

type

Optional character string specifying the expected type. If NULL (default), the type is auto-detected.

Value

The appropriate fmristore object

Examples

if (FALSE) { # \dontrun{
# Auto-detect type from HDF5 file
obj <- read_dataset("data.h5")

# Specify type explicitly
vec <- read_dataset("data.h5", type = "H5NeuroVec")
} # }