Learn R Programming

fslr (version 1.9.2.1)

parse_img_ext: Parse Image Extensions

Description

Get image extensions from a filename

Usage

parse_img_ext(file)

Arguments

file
Character filename to parse

Value

Extension of file

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