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

View source: R/analyzeFMRI.R

f.write.list.to.hdrR Documentation

writes a .hdr file in ANALYZE format

Description

Writes a list of attributes to a .hdr file

Usage

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

Arguments

L

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

file

The name of the file to write, 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.list.create

Examples

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

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