

   CCoonnddiittiioonnaall EElleemmeenntt SSeelleeccttiioonn

        ifelse(test, yes, no)

   DDeessccrriippttiioonn::

        `ifelse' returns a value with the same shape as `test'
        which is filled with elements selected from either
        `yes' or `no' depending on whether the element of
        `test' is `TRUE' or `FALSE'.  If `yes' or `no' are too
        short, their elements are recycled.

   SSeeee AAllssoo::

        `if'.

   EExxaammpplleess::

        x <- c(6:-4)
        sqrt(x)#- gives warning
        sqrt(ifelse(x >= 0, x, NA))# no warning

        ## Note: the following also gives the warning !
        ifelse(x >= 0, sqrt(x), NA)

