IE(input, out1, out2 = NULL, FUN = is.numeric)
TRUE
.FALSE
.Returns output 1 (out1) or output 2 (out2) as a function of the logical test.
Use in the place of ifelse
for arguments
(particularly if NULL
is an option).
IE(25, 360)[1] 360IE("char", 360)NULLIE(NULL, 360)NULLIE(NULL, 360, FUN = is.null)[1] 360