readNii: Input function for fmri data

Description Usage Arguments Value Author(s) Examples

Description

This function reads 4D and 3d nifti and nifti files

Usage

1
readNii(input,fourD=TRUE)

Arguments

input

A character vector containing a single string or multiple strings. If multiple strings are provided the data is concatenated and is assumed to be from the same session. The data can be in 4d.nii format or .img and .hdr pairs. If input input is in .img/.hdr pair only the .img file need be specified

fourD

If set to false nii objects are returned for each image.

Value

A 4D array is returned with time being the fourth dimension

Author(s)

Tim Tierney

Examples

1
2
file<-system.file("extdata","motion_ex.nii.gz",package="FIACH")
func<-readNii(file)

FIACH documentation built on May 1, 2019, 8:02 p.m.

Related to readNii in FIACH...