Learn R Programming

AnalyzeFMRI (version 1.1-25)

f.read.nifti.slice.at.all.timepoints: reads a slice at all time points from a NIFTI .img or .nii file

Description

Reads in a slice of a .img or .nii file at all time points into an array

Usage

f.read.nifti.slice.at.all.timepoints(file, slice)

Value

An array containing the slice at all time points

Arguments

file

file The location of the .img file

slice

slice The number of the slice to be read in

See Also

f.read.nifti.slice, f.read.nifti.ts, f.read.nifti.volume

Examples

Run this code
a <- f.read.nifti.slice.at.all.timepoints(system.file("example-nifti.img",
                                             package = "AnalyzeFMRI"), 10)
dim(a)

Run the code above in your browser using DataLab