Skip to content
Prev 52206 / 63424 Next

ifelse() woes ... can we agree on a ifelse2() ?

On 06.08.2016 17:30, Duncan Murdoch wrote:
Same from here: I do not see how this can easily be made more efficient, 
since evaluating ony parts causes a lot of copies of objects whichs 
slows stuff down, hence you need some complexity in yes and no to make 
evaluations of parts of them more efficient on R level.


Anyway, to solve the problem, we may want an add argument to ifelse2() 
that allows for specification of the type of the result (as vapply does)?

Best,
Uwe