Description Usage Arguments Details Value
The core function as.logical() crashes if you give it a NULL. This convenience function turns those NULLs into FALSE and preserves the same output as as.logical() for non-NULLs.
1 | as_boolean(value)
|
value |
value to be converted to boolean |
It probably needs a bit more work to make it behave the same way as as.logical() does for vectors. For the moment, this is just working on single values when they are NULL.
input value as a boolean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.