R: Sets NAs in Logical Objects to FALSE

ok {IDPmisc} | R Documentation

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

### Author(s)

Rene Locher

### Examples

    ok(c(FALSE,TRUE,NA,TRUE))

[Package IDPmisc version 1.1.20 Index]