Returns
afni_suffix(x, default = "orig")
x | A vector of character filenames |
---|---|
default | if no suffix is found, use this value. You can also specify
|
A character vector, the same length as x
, with suffixes
afni_suffix("mybrik+orig.nii.gz")
#> [1] "+orig"
afni_suffix("mybrik+orig[1].nii.gz")
#> [1] "+orig"