powered by
A wrapper around if() else() to prevent unexpected interactions between ifelse() and factor variables
if() else()
ifelse()
ife(x, a, b)
True / False
value to return if True
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