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

View source: R/niftiFMRI.R

f.write.list.to.hdr.niftiR Documentation

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)

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)

Value

Nothing is returned

See Also

f.basic.hdr.nifti.list.create

Examples

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

AnalyzeFMRI documentation built on Aug. 8, 2025, 7:16 p.m.