R/Segment.R

Defines functions Segment

Documented in Segment

Segment <-
  function(jump.k)
  {
    K <- 1 + length(jump.k)
    kbreak.a <- which(jump.k)
    kstart.A <- c(1, 1 + kbreak.a)
    kend.A <- c(kbreak.a, K)
    ksegments.A2 <-
      cbind(start = kstart.A,
            end = kend.A
      )
    ksegments.A2
  }

Try the DMRcate package in your browser

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

DMRcate documentation built on Jan. 17, 2021, 2 a.m.