Re: [Rd] ifelse

From: Tim Hesterberg <TimHesterberg_at_gmail.com>
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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel 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 https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive