This function merges nifti images together in a specified direction.
mergeNiftis(inputPaths, direction = c("x", "y", "z", "t"), outfile = NULL,
ncores = 1, ...)
This is a vector of input filenames (character)
This is the direction you want to merge your image over, x, y, z, or t
This is the path and file name to save the Nifti file without the suffix, passed to writeNIfTI
Number of cores to be used for this operation
Additional arguments passed to readNIfTI
Returns a merged NIfTI image