Learn R Programming

fslr (version 1.9.2.1)

writeNIfTI2: writeNIfTI with default non-reoirientation

Description

This function calls the writeNIfTI function from the oro.nifti package, but makes sure to remove .nii extension and warnings can be suppressed.

Usage

writeNIfTI2(nim, filename, dtype = FALSE, ...)
writenii(nim, filename, dtype = TRUE, drop_dim = TRUE, warn = FALSE, ...)

Arguments

nim
object of class nifti, passed to writeNIfTI
filename
path to save the NIfTI file. Suffix will be removed
dtype
Should datatyper be run before writing?
...
Additional arguments pased to writeNIfTI
drop_dim
Should drop_img_dim be run before writing?
warn
Should warnings from writeNIfTI be printed? If not, suppressWarnings is called

Value

Nothing