Learn R Programming

neurobase (version 1.32.4)

nii.stub: Grab nii file stubname

Description

Quick helper function to strip off .nii or .nii.gz from filename

Usage

nii.stub(x, bn = FALSE)

Value

A character vector with the same length as x

Arguments

x

character vector of filenames ending in .nii or .nii.gz

bn

Take basename of file?