replace_with_na: Detect and replace values with NA
from a vector
Description
Detect and replace values with NA
from a vector
Usage
replace_with_na(x, na_strings)
Value
A <vector>
where the specified values were replaced with
NA
if found.
Arguments
- x
A <vector>
of numeric or character values
- na_strings
A <vector>
of the values to be replaced