Learn R Programming

AnalyzeFMRI (version 1.1-25)

f.write.list.to.hdr: 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)

Value

Nothing is returned

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)

See Also

f.basic.hdr.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.list.create(a, file)
tmpdir <- tempdir()
f.write.list.to.hdr(b, file, path.out = tmpdir)
unlink(tmpdir) # tidy up

Run the code above in your browser using DataLab