Re: R-alpha: ifelse

Robert Gentleman (rgentlem@stat.auckland.ac.nz)
Tue, 25 Jun 1996 08:57:34 +1200


Date: Tue, 25 Jun 1996 08:57:34 +1200
From: Robert Gentleman <rgentlem@stat.auckland.ac.nz>
Message-Id: <199606242057.IAA01415@stat.auckland.ac.nz>
To: r-testers@stat.math.ethz.ch
Subject: Re: R-alpha: ifelse

Jim,
  There is no way that ifelse can be written so that it only evaluates
one of the last two arguments. If you want that behaviour you need to
use a for loop over the two vectors.

robert
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-