R/get.regpos.R

`get.regpos` <-
function(gregx){
   outregpos<-list()
   start.tmp<-lapply(gregx,function(x) c(x))
   len.tmp<-lapply(gregx,function(x) attr(x,"",""))
   outregpos$start<-start.tmp
   outregpos$stop<-mapply(function(x,y) x+y-1,start.tmp,len.tmp,SIMPLIFY=FALSE)
   outregpos
}

Try the informR package in your browser

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

informR documentation built on May 1, 2019, 9:22 p.m.