is_logical_value | R Documentation |
Check if the passed entity is a single logical value (TRUE or FALSE)
is_logical_value(value, allow_na = FALSE, allow_null = FALSE)
value |
the value to check |
allow_na |
if TRUE, accepts a NA value |
allow_null |
if TRUE, accepts a null value |
## Not run:
# For assertion
assertthat::assert_that(qscheck::is_logical_value(value))
# For check
if (qscheck::is_logical_value(value)) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.