ife | R Documentation |
A wrapper around if() else()
to prevent unexpected
interactions between ifelse()
and factor variables
ife(x, a, b)
x |
True / False |
a |
value to return if True |
b |
value to return if False |
By default ifelse()
will convert factor variables to their
numeric values which is often undesirable. This connivance
function avoids that problem
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.