I am trying to filter
all NA
. I thought this would work but it gives me an empty table rather than what I expected:
data_frame(var=c(sample(letters[1:2],8,replace=8),NA,NA),
value=rnorm(10,10,2)) %>%
filter(var==is.na(var))
#EXPECTED
# var value
# <chr> <dbl>
# 1 <NA> 9.119849
# 2 <NA> 13.236334