Learn R Programming

neurobase (version 1.32.4)

parse_img_ext: Parse Image Extensions

Description

Get image extensions from a filename

Usage

parse_img_ext(file)

Value

Extension of file

Arguments

file

Character filename to parse

Examples

Run this code
parse_img_ext("blah.nii.gz")
parse_img_ext("blah.mnc")
parse_img_ext("blah.nii")
parse_img_ext("blah")
parse_img_ext("blah.img")
parse_img_ext("blah.hdr")
parse_img_ext("blah.hdr.gz")

Run the code above in your browser using DataLab