From suharto_anggono at yahoo.com  Sat Nov  4 13:11:48 2017
From: suharto_anggono at yahoo.com (Suharto Anggono Suharto Anggono)
Date: Sat, 4 Nov 2017 12:11:48 +0000 (UTC)
Subject: [Rd] ans[nas] <- NA in 'ifelse' (was: ifelse() woes ... can we
 agree on a ifelse2() ?)
References: <1529825091.2728209.1509797508916.ref@mail.yahoo.com>
Message-ID: <1529825091.2728209.1509797508916@mail.yahoo.com>

Removal of
ans[nas] <- NA
from the code of function 'ifelse' in R is not committed (yet). Why?

--------------------------------------------
On Mon, 28/11/16, Martin Maechler <maechler at stat.math.ethz.ch> wrote:

 Subject: Re: [Rd] ifelse() woes ... can we agree on a ifelse2() ?

 Cc: R-devel at r-project.org, maechler at stat.math.ethz.ch
 Date: Monday, 28 November, 2016, 10:00 PM
 
>>>>> Suharto Anggono Suharto Anggono via R-devel <r-devel at r-project.org>
>>>>>     on Sat, 26 Nov 2016 17:14:01 +0000 writes:

...


    > On current 'ifelse' code in R:

    > * The part
    > ans[nas] <- NA
    > could be omitted because NA's are already in place.
    > If the part is removed, variable 'nas' is no longer used.

I agree that this seems logical.  If I apply the change, R's own
full checks do not seem affected, and I may try to commit that
change and "wait and see".


...



[Rd] ans[nas] <- NA in 'ifelse' (was: ifelse() woes ... can we agree on a ifelse2() ?)
Suharto Anggono Suharto Anggono