[Rd] ifelse

From: Heikki Kaskelma <Heikki.Kaskelma_at_nbl.fi>
Date: Tue, 19 Aug 2008 02:35:00 +0300

I find it slightly surprising, that

ifelse(TRUE, character(0), "")

returns NA instead of character(0).

[WNT 2.6.2 Patched]

Heikki Kaskelma

R-devel_at_r-project.org mailing list
Received on Mon 18 Aug 2008 - 23:47:06 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 - 07:37:34 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