rmext: Remove extension from file...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Remove extension from file

Usage

1
rmext(fname, compressed=T)

Arguments

fname

filename

compressed

do you want to remove a compression extension (.gz or .zip), before removing the real extension?

Value

character with extension removed

Examples

1
2
rmext('test.nii.gz')    # should get test
rmext('test.nii.gz', FALSE) # should get test.nii

czarrar/niftir documentation built on May 12, 2017, 2:28 p.m.