NA
R/na_if.R
na_if.Rd
Convert values to NA.
na_if(x, y)
A vector
Value to replace with NA
vec <- 1:3 na_if(vec, 3) #> [1] 1 2 NA