R/imputeMean.R

Defines functions impute.mean

Documented in impute.mean

impute.mean <- function(x) {
    calc.mean <- mean(x, na.rm = TRUE)
    x[is.na(x)] <- calc.mean
    return(x)
}

Try the fscaret package in your browser

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

fscaret documentation built on May 2, 2019, 10:15 a.m.