R/offsetfun.R

Defines functions offsetfun

offsetfun <-
function(Offset=0, targets){

  if(Offset > 0){
    ranges(targets) <- ranges(targets) + Offset
    targets <- reduce(targets)
  }
  return(targets)
}

Try the TEQC package in your browser

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

TEQC documentation built on Nov. 8, 2020, 8:07 p.m.