is_dummy | R Documentation |
Detect if a vetor only has 2 unique values, regardless of being numeric, factor or logical.
is_dummy(x)
x |
A vector. |
A logical value.
is_dummy(mtcars$vs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.