make_logical
will check with hides_logical
that it is posible to coerce
to logical, then the given true
and false
parameter will guide how to convert it.
Values enumerated in na.values
will be converted to NA
so it's not necessarily
required to pass a completely binary input
1 | make_logical(x, true = NULL, false = NULL, na.values = NULL)
|
x |
A vector. |
true |
The value to set to |
false |
The value to set to |
na.values |
Values to set as |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.