file_imgext: Get Image file extension

View source: R/file_imgext.R

file_imgextR Documentation

Get Image file extension

Description

Get the image file extension, either .nii, .hdr, .nii.gz, or .hdr.gz

Usage

file_imgext(file, withdot = TRUE)

Arguments

file

Vector of character filenames

withdot

Should the extension begin with "."?

Value

Vector of extensions. If withdot = FALSE, then will return nii instead of .nii


muschellij2/neurobase documentation built on Nov. 28, 2023, 5:33 a.m.