powered by
what="median"
what="mean"
impute(x, what = c("median", "mean"))
x<- matrix(1:10, ncol=2) x[c(1,3,7)] <- NA print(x) print(impute(x))
Run the code above in your browser using DataLab