R-alpha: ! incompatibility

Thomas Lumley (thomas@biostat.washington.edu)
Thu, 12 Sep 1996 11:29:48 -0700 (PDT)


Date: Thu, 12 Sep 1996 11:29:48 -0700 (PDT)
From: Thomas Lumley <thomas@biostat.washington.edu>
To: R-testers <r-testers@stat.math.ethz.ch>
Subject: R-alpha: ! incompatibility
In-Reply-To: <m0v1EUa-0000TpC@franz.stat.wisc.edu>


Another minor incompatibility
R>if (!1) T else F
Error: unary ! is only defined for logical vectors

S> if (!1) T else F
[1] F

!as.logical() works, though.

thomas lumley

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-