na_if_in | R Documentation |
Extending na_if to replace multiple values with NA
na_if_in(x, y) na_if_notin(x, y)
x |
input vector |
y |
vector of values to replace with NA |
modified vector where all instances from 'y' have been replaced with NA
na_if_notin
: the logical-not variant
na_if_in(letters, c("b", "c") ) na_if_notin(letters, c("b", "c") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.