| na_in {k5} | R Documentation |
Remove in
Description
Set NA for the values of x that are %in% the vector y.
Usage
na_in(x, y, ignore.case = FALSE)
Arguments
x |
A vector to check. |
y |
A vector to compare against. |
ignore.case |
logical; if |
Value
The vector x missing any values in y.
See Also
Other counting wrappers:
count_diff(),
count_in(),
count_na(),
count_out(),
na_out(),
na_rep(),
prop_distinct(),
prop_in(),
prop_na(),
prop_out(),
what_in(),
what_out()
Examples
na_in(c("VT", "NH", "ZZ", "ME"), state.abb)
na_in(1:10, seq(1, 10, 2))
[Package k5 version 0.2.1 Index]