Learn R Programming

AnalyzeFMRI (version 1.1-25)

f.write.list.to.hdr.nifti: writes a .hdr file in NITI format

Description

Writes a list of attributes to a .hdr file

Usage

f.write.list.to.hdr.nifti(L,file, path.out=NULL)

Value

Nothing is returned

Arguments

L

A list of the all the fields included in a .hdr file

file

The name of the file to write to, preferably with .hdr suffix

path.out

The path where to write the file (mandatory argument, even if the default value is NULL for backward compatibility)

See Also

f.basic.hdr.nifti.list.create

Examples

Run this code
a <- array(rnorm(20 * 30 * 40 * 3), dim = c(20, 30, 40, 3))
file <- "temp.hdr"
b <- f.basic.hdr.nifti.list.create(dim(a), file)
tmpdir <- tempdir()
f.write.list.to.hdr.nifti(b, file, path.out = tmpdir)
unlink(tmpdir) # tidy up

Run the code above in your browser using DataLab