Converts an AFNI file to an NIfTI file or nifti using 3dAFNItoNIFTI

afni_3dAFNItoNIFTI(file, outfile = NULL, opts = "", float = TRUE,
  retimg = TRUE, ...)

afni_to_nifti(...)

Arguments

file

AFNI BRIK or HEAD file

outfile

output filename or prefix. The default is to always use .nii.gz extensions and will override if outfile has a .nii extension.

opts

Additional options to pass to 3dAFNItoNIFTI

float

Should the -float option be called in 3dAFNItoNIFTI

retimg

Should an image be returned?

...

additional arguments to readnii

Value

If retimg then object of class nifti. Otherwise, the outfile argument is returned (or a temporary filename)