read.NIFTI.Rd
Read fMRI data from NIFTI file(s).
read.NIFTI(filename, level = 0.75, mask=NULL, setmask=TRUE)
filename | name of the NIFTI file |
---|---|
level | Quantile level defining the mask |
mask | array or nifti-object containing the mask. If set this replaces the mask defined by argument level. |
setmask | Logical (default |
This function reads fMRI data files in NIFTI format.
The filename can be given with or without extension. If extension is not included, the function searches for the ".nii" file and then for the "hdr/img" pair.
Object of class "fmridata" with the following list entries:
raw vector (numeric size 4) containing the four dimensional data cube (the first three dimensions are voxel dimensions, the fourth dimension denotes the time).
header information of the data
data source. string "NIFTI"
voxel size in mm
position of the datacube origin
data orientation code
dimension of the datacube
weights vector coding the relative voxel sizes in x, y, z-direction
head mask
Polzehl, J. and Tabelow, K. (2007) fmri: A Package for Analyzing fmri Data, R News, 7:13-17 .
Karsten Tabelow tabelow@wias-berlin.de
if (FALSE) analyze <- read.NIFIT("niftifile.nii")