Places values into an object like test according to the logical values
in test.
USAGE:
ifelse(test, yes, no)
REQUIRED ARGUMENTS:
test:
logical object.
Missing values (NA) are allowed.
yes:
vector containing values to be returned for elements with test
equal to TRUE.
no:
vector containing values to be returned for elements with test
equal to FALSE.
VALUE:
object with the attributes of test and data values
from the values of yes or no depending on
test. If yes or no are not as long as test,
they will be repeated cyclically.