Learn R Programming

fmri (version 1.0)

write.AFNI: I/O functions

Description

Write BRIK/HEAD files.

Usage

write.AFNI(file, ttt, label, note = "", origin = c(0, 0, 0), 
               delta = c(4, 4, 4), idcode = "WIAS_noid")

Arguments

file
name of the file
ttt
datacube
label
labels (BRICK_LABS)
note
notes on data (HISTORY_NOTE)
origin
origin of datacube (ORIGIN)
delta
voxel dimensions (DELTA)
idcode
idcode of data (IDCODE_STRING)

Value

  • Nothing is returned.

Details

Write out BRIK/HEAD files as required by AFNI. Most arguments correspond to entries in the HEAD file.

See Also

read.AFNI,write.ANALYZE

Examples

Run this code
write.AFNI("afnifile", array(as.integer(65526*runif(10*10*10*20)),
     c(10,10,10,20)), c("signal"), note="random data",
     origin=c(0,0,0), delta=c(4,4,5), idcode="unique ID")

Run the code above in your browser using DataLab