ok: Sets NAs in Logical Objects to FALSE

View source: R/ok.R

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

Usage

ok(x)

Arguments

x

Logical vector or matrix

Value

Logical vector or matrix, containing no NAs.

Author(s)

Rene Locher

Examples

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

IDPmisc documentation built on May 29, 2024, 2:48 a.m.