Dealing with TRUE, FALSE, NA and NaN

You don’t need to wrap anything in a function – the following works

a = c(T,F,NA)

a %in% TRUE

[1]  TRUE FALSE FALSE

Leave a Comment