powered by
Returns TRUE for TRUE elements, FALSE for FALSE elements, and whatever is specified in na for NA items.
TRUE
FALSE
na
NA
isTrue(x, na = FALSE)
A logical vector.
The vector to check for TRUE, FALSE, and NA values.
What to return for NA values.
isTrue(c(TRUE, FALSE, NA)); isTrue(c(TRUE, FALSE, NA), na=TRUE);
Run the code above in your browser using DataLab