Description Usage Arguments Value Examples
View source: R/specify_missing.R
Change specified values to NA
1 | 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
.
1 2 3 | x <- sample(100)
x[sample(100, 10)] <- 999
specify_missing(x, 999)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.