Skip to content
Prev 63113 / 63424 Next

Time to revisit ifelse ?

On Tue, 8 Jul 2025 at 17:23, Avraham Adler <avraham.adler at gmail.com> wrote:
I might have missed it but the suggestion wasn't to replace the
existing ifelse code.
There are at least two existing proven performant code implementations.
One on a package (data.table) with no additional dependencies.
What would another implementation add?
Yet recently it was suggested by one R-core member as a possible
improvement for R suggesting that patches via bugzilla would be
appreciated [1]. Of course, this doesn't mean it would be the case for
this suggestion but seeing the interest of the community and how it
can help many useRs I think exploring how to integrate such a if.else
function on base R could be helpful for all (even if it is only added
to R source later).

[1]: https://github.com/r-devel/r-dev-day/issues/87