Takes a logical vector as input and set all NAs to FALSE. This may happens when comparison is done on NA values.
a logical vector.
A logical vector without NAs.
## Not run:
a <- c(1, 2, 3, NA, 5)
b <- c(5, 4, NA, 2, 1)
sel <- a > b
sel <- na2false(sel)
## End(Not run)
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.