Quick helper function to strip off .nii, .nii.gz, BRIK, BRIK.gz, HEAD, HEAD.gz, or brik/head from filename
brik.stub(x, bn = FALSE)
x | character vector of filenames ending in .nii or .nii.gz |
---|---|
bn | Take |
A character vector with the same length as x