powered by
Replace NA values with FALSE in logical vectors. For other vectors, the behavior relies on R's automatic conversion rules.
NA
FALSE
na2false(x)
A vector with NA values replaced by FALSE.
A vector.
na2false(c(TRUE, FALSE, NA, TRUE, NA)) na2false(c(1, 2, NA))
Run the code above in your browser using DataLab