Description Usage Arguments Value
Checks if a variable is boolean, if not throws an error, otherwise returns boolean.
1 |
var |
The variable to be checked (if boolean). |
name |
The name of the variable to appear in any error message. |
If not boolean (or NA
), throws error.
If NA
, return FALSE
. Otherwise return
boolean value of var
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.