R/file_imgext.R
file_imgext.Rd
Get the image file extension, either .nii, .hdr, .nii.gz, or .hdr.gz
file_imgext(file, withdot = TRUE)
Vector of character filenames
Should the extension begin with "."?
"."
Vector of extensions. If withdot = FALSE, then will return nii instead of .nii
withdot = FALSE
nii
.nii