is_single_true | R Documentation |
Tests if an object is a single TRUE
is_single_true(x)
x |
an R object |
is_single
, is_single_false
is_single_true(TRUE) # TRUE
is_single_true(FALSE) # FALSE
is_single_true(c(TRUE, FALSE)) # FALSE
is_single_true(-1.0) # FALSE
is_single_true(0) # FALSE
is_single_true(NA) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.