IDPmisc (version 1.1.20)

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 NAs.

Usage

ok(x)

Value

Logical vector or matrix, containing no NAs.

Arguments

x

Logical vector or matrix

Author

Rene Locher

Examples

Run this code
ok(c(FALSE,TRUE,NA,TRUE))

Run the code above in your browser using DataCamp Workspace