R/ce.impute.R

Defines functions ce.impute

Documented in ce.impute

ce.impute <-
function (data, method = c("mean", "median", "knn"), atr, nomatr = rep(0, 
    0), k1 = 10) 
{#Fixed by Edgar Acuna, september 2015
    if (method == "mean") 
        data.impute = ce.mimp(data, method, atr, nomatr)
    else if (method == "median") 
        data.impute = ce.mimp(data, method, atr, nomatr)
    else data.impute = ec.knnimp(data, nomatr, k1)
return(data.impute)
}

Try the dprep package in your browser

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

dprep documentation built on May 29, 2017, 11:01 a.m.