R/msc.level.ind.R

Defines functions msc.level.ind

Documented in msc.level.ind

msc.level.ind <- function (msLevel, pId, addExtrema = TRUE) 
{


    i <- msLevel$partition == pId
    if(addExtrema){ 
      i[msLevel$min[pId]] <- TRUE
      i[msLevel$max[pId]] <- TRUE
    }
    i
}

Try the msr package in your browser

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

msr documentation built on May 30, 2017, 4:23 a.m.