NAer(x, replace = 0)
NA
).NA
) with.Returns a vector or dataframe with missing values replaced.
Replace missing values (NA
) in a vector or dataframe.
## <strong>Not run</strong>: # set.seed(10) # (x <- sample(c(rep(NA, 4), 1:10), 20, rep=T)) # NAer(x) # # set.seed(10) # (y <- data.frame(matrix(x, 5, 4)) ) # NAer(y) # NAer(y, "MISSING") # ## <strong>End(Not run)</strong>