R/remove.R

rmniigz <- function(x) {
  sub(".nii.gz", "", x)
}

rmnii <- function(x) {
  sub(".nii", "", x)
}

rmgz <- function(x) {
  sub(".gz", "", x)
}

rmhdrgz <- function(x) {
  sub(".hdr.gz", "", x)
}

rmhdr <- function(x) {
  sub(".hdr", "", x)
}

rmimggz <- function(x) {
  sub(".img.gz", "", x)
}

rmimg <- function(x) {
  sub(".img", "", x)
}

Try the oro.nifti package in your browser

Any scripts or data that you put into this service are public.

oro.nifti documentation built on May 2, 2019, 5:26 p.m.