R/na.omitt.dmrscan.R

Defines functions na.omitt.dmrscan

na.omitt.dmrscan <- function(x){
        if(is.na(x[1,1])){
            out <- NULL
        }else{
            d1 <- max(which(!is.na(x[col(x) == row(x)])))    
            if(d1 < 2){
                out <- NULL
            }else{
                out <- x[1:d1,1:d1]
            }
        }
            return(out)
}

Try the DMRScan package in your browser

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

DMRScan documentation built on Nov. 8, 2020, 8:10 p.m.