1.

Write A Function In R Language To Replace The Missing Value In A Vector With The Mean Of That Vector?

Answer»

mean IMPUTE <- FUNCTION(x) {x [is.na(x)] <- mean(x, na.rm = TRUE); x}

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



Discussion

No Comment Found