ifelse2.Rd
ternary operator just like java test ? yes : no
test ? yes : no
ifelse2(test, yes, no)
an object which can be coerced to logical mode.
return values for true elements of test.
return values for false elements of test.
x <- ifelse2(TRUE, 1:4, 1:10)