R-alpha: ifelse

Jim Lindsey (jlindsey@luc.ac.be)
Mon, 24 Jun 1996 09:31:39 +0200 (MET DST)

From: Jim Lindsey <jlindsey@luc.ac.be>
Message-Id: <9606240731.AA12004@alpha.luc.ac.be>
Subject: R-alpha: ifelse
To: r-testers@stat.math.ethz.ch
Date: Mon, 24 Jun 1996 09:31:39 +0200 (MET DST)

  Is there any way that ifelse() could be written so that it only evaluates
one of the last two arguments for each element of a vector?
  I am using it in nonlinear optimization. As it is, it produces a
long series of "NA in function (e.g. log) warnings" and doubles the
opitmization time.
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