R/compair.R

Defines functions compair

compair <- function(x, predlog10mfi.var = "predicted.log10_mfi", 
                    residual.var = "residuals"){
    if( all(c(predlog10mfi.var,residual.var)%in%names(x)) ) {
        mat <- apply( x[,c(predlog10mfi.var,residual.var)], 1, 
                    function(y) is.na(y))
        ans <- apply(mat,2,function(y) sum(y))
        ans <- all(ans>=1)
    } else {
        ans <- TRUE
    }
    return(ans)
} 

Try the drLumi package in your browser

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

drLumi documentation built on May 2, 2019, 2:45 p.m.