R/trimSeries.R

Defines functions trimSeries

trimSeries <- function(x) {
  xrange <- range(x$limits)
  x$limits <- x$limits - xrange[1] + 1
  x$profile.raw <- x$profile.raw[xrange[1]:xrange[2]]
  if ("profile" %in% names(x)) {
    x$profile <- x$profile[xrange[1]:xrange[2]]
  }
  x
}

Try the xRing package in your browser

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

xRing documentation built on April 22, 2022, 5:05 p.m.