is.boolean | R Documentation |
Returns TRUE if the passed x variable is a length one variable
containing a valid TRUE/FALSE value. This test is stricter than
function is.logical
, since NA, NULL and NaN all return FALSE.
Moreover, only single cell (length one) array admitted.
is.boolean(x)
x |
the variable to be checked |
a boolean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.