write.NIFTI: I/O Functions

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/io.R

Description

Write a 4 dimensional datacube in NIFTI file format.

Usage

1
write.NIFTI(ttt, header=NULL, filename)

Arguments

ttt

4 dimensional datacube

header

header information

filename

file name

Details

Writes the datacube ttt to a file named file in NIFTI file format. header is a list that contains the header information.

See NIFTI documentation for details.

Value

Nothing is returned.

Author(s)

Karsten Tabelow tabelow@wias-berlin.de

References

Polzehl, J. and Tabelow, K. (2007) fmri: A Package for Analyzing fmri Data, R News, 7:13-17 .

See Also

read.ANALYZE, write.AFNI

Examples

1
2
3
## Example 1
write.NIFTI(array(as.integer(65526*runif(10*10*10*20)),c(10,10,10,20)),
              file=file.path(tempdir(),"niftifile"))

neuroconductor/fmri documentation built on May 20, 2021, 4:28 p.m.