fslmaths -rem.
The R functions wraps fslmaths
fslrem(file, file2, outfile = NULL, retimg = TRUE, reorient = FALSE, intern = FALSE, opts = "", ...)readnii.systemfslmathsreadnii.retimg then object of class nifti. Otherwise,
Result from system command, depends if intern is TRUE or FALSE.