isTrue | R Documentation |
Returns TRUE
for TRUE
elements, FALSE
for FALSE
elements,
and whatever is specified in na
for NA
items.
isTrue(x, na = FALSE)
x |
The vector to check for |
na |
What to return for |
A logical vector.
isTrue(c(TRUE, FALSE, NA));
isTrue(c(TRUE, FALSE, NA), na=TRUE);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.