[R] a < b < c is alway TRUE

About this list Date view Thread view Subject view Author view Attachment view

From: Uwe Ligges (ligges@statistik.uni-dortmund.de)
Date: Fri 06 Jul 2001 - 19:35:33 EST


Message-id: <3B458665.8AC006B1@statistik.uni-dortmund.de>

One of our students did something like:

  x[a < b < c]

instead of

  x[a < b & b < c]

But why is

  3 < 2 < 1 # [1] TRUE ???

Is there any reason?
Or wouldn't it be better to get a warning / error?

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Wed 10 Mar 2004 - 08:18:18 EST