Skip to contents

isnot_ functions check if a variable does not pass a certain condition.

isnot_in

The goal of isnot_in is to check if a variable is not contained, it is the same as !(x %in% y).

isnot_in("a", letters)
#> [1] FALSE

isnot_in("1", letters)
#> [1] TRUE

isnot_na

The goal of isnot_na is to check if a variable is not a NA it is the same as !is.na(x).

isnot_na(2)
#> [1] TRUE

isnot_na(NA)
#> [1] FALSE