[Rd] ifelse

Tim Hesterberg TimHesterberg at gmail.com
Tue Aug 26 06:55:46 CEST 2008

Others have commented on why this holds.

There is an alternative, 'ifelse1', part of the splus2R package, that
does what you'd like here.

Tim Hesterberg

>I find it slightly surprising, that
>   ifelse(TRUE, character(0), "")
>returns NA instead of character(0). 
>Heikki Kaskelma

More information about the R-devel mailing list