file_imgext: Get Image file extension

Description Usage Arguments Value

View source: R/file_imgext.R

Description

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

Usage

1
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


neuroconductor/neurobase documentation built on May 19, 2021, 5:24 a.m.