R/fillIn.R

Defines functions fillIn

fillIn <- function(x) {
    for(j in 1:ncol(x)) {
        nas <- is.na(x[,j])
        x[nas,j] <- mean(x[!nas,j])
    }
    x
}
johnmchambers/XRexamples documentation built on May 19, 2019, 5:16 p.m.