R/filter.absent.R

filter.absent <- function(x, pct) {
    present <- T
    col <- length(x)/2
    pct.absent <- (sum(x[2 * (1:col)] == "A") + sum(x[2 * 
        (1:col)] == "M"))/col
    if (pct.absent > pct) {
        present <- F
    }
    present
}
BowenNCSU/xMSanalyzer documentation built on May 24, 2019, 7:36 a.m.