powered by
A function to replace NA's with FALSE in vector of logicals
TorF(cond, use_isTRUE = FALSE)
logical vector
a vector of conditions to check
whether or not to use a vectorized version of isTRUE. This is generally slower but covers more cases.
TorF(c(TRUE, NA, FALSE)) ## NA becomes FALSE
Run the code above in your browser using DataLab