Skip to contents

Vectorized isTRUE

Usage

isTRUEV(x, ...)

Arguments

x

vector

...

additional arguments are ignored

Value

logical vector with length matching x.

Details

This function applies three criteria to an input vector, to determine if each entry in the vector is TRUE:

  1. It must be class logical.

  2. It must not be NA.

  3. It must evaluate as TRUE.

Examples

isTRUEV(c(TRUE, FALSE, NA, TRUE))
#> [1]  TRUE FALSE FALSE  TRUE