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