Re: [Rd] ifelse

From: Tim Hesterberg <>
Date: Tue, 26 Aug 2008 06:55:46 +0200

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 mailing list Received on Tue 26 Aug 2008 - 04:57:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Aug 2008 - 09:37:33 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive