IDPmisc (version 1.1.19)

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)

Arguments

x

Logical vector or matrix

Value

Logical vector or matrix, containing no NAs.

Examples

Run this code
# NOT RUN {
ok(c(FALSE,TRUE,NA,TRUE))
# }

Run the code above in your browser using DataCamp Workspace