Rdocumentation
powered by
Learn R Programming
IDPmisc (version 0.9.3)
ok: Sets NAs in Logical Objects to FALSE
Description
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
NA
s.
Usage
ok(x)
Arguments
x
Logical vector or matrix
Value
Logical vector or matrix, containing no
NA
s.
Examples
Run this code
ok(
c
(
FALSE
,
TRUE
,
NA
,
TRUE
))
Run the code above in your browser using
DataLab