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