| specify_missing {rccmisc} | R Documentation |
Change specified values to NA
specify_missing(x, ..., default_missing = c("", NA, "blanks"))
x |
vector |
... |
values that should be changed to |
default_missing |
a vector with additional default values to change to NA.
These are treated the same as |
x itself but with specified values set to NA.
x <- sample(100) x[sample(100, 10)] <- 999 specify_missing(x, 999)