View source: R/helpfunctions_checks.R
| two_value_to_factor | R Documentation |
Convert two-value vectors to factors
two_value_to_factor(x)
x |
a vector |
the vector converted to a factor if it has exactly two unique (non-missing) values and is not already a factor; otherwise the input
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.