Sets NAs in logical vectors and matrices to FALSE. This is especially useful for conditional selections of data when the variables the condition is based on contain NAs.
NA
ok(x)
Logical vector or matrix
Logical vector or matrix, containing no NAs.
# NOT RUN { ok(c(FALSE,TRUE,NA,TRUE)) # }
Run the code above in your browser using DataCamp Workspace