isTrue

isTrue

Returns TRUE for TRUE elements, FALSE for FALSE elements, and whatever is specified in na for NA items.

Keywords
univariate
Usage
isTrue(x, na = FALSE)
Arguments
x
The vector to check for TRUE, FALSE, and NA values.
na
What to return for NA values.
Value

A logical vector.

Aliases
  • isTrue
Examples
isTrue(c(TRUE, FALSE, NA));  
isTrue(c(TRUE, FALSE, NA), na=TRUE);
Documentation reproduced from package userfriendlyscience, version 0.5-2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.