Wrapper for AFNI 3dcalc function

afni_3dcalc(file, expression, outfile = NULL, retimg = TRUE,
  opts = "", ...)

Arguments

file

nifti object or NIfTI filename. If more than one is given, they are given names of the letters up to z.

expression

Calculation expression, with single quotes

outfile

Output filename, should have a .nii.gz extension

retimg

Should an image be returned (TRUE) or a filename?

opts

Additional options passed to 3dcalc

...

additional arguments to afni_3dAFNItoNIFTI

Value

Output filename of the brik