From: David Meyer (david.meyer@ci.tuwien.ac.at)
Date: Fri 06 Jul 2001 - 20:27:54 EST
Message-id: <3B4592AA.9E81F29F@ci.tuwien.ac.at>
Monika Ferster wrote:
>
> Uwe Ligges writes:
> > 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 ???
> >
3 < 2 is FALSE=0, and 0<1 is always TRUE.
>
> 3 < 2 < 1 seems to be seen like a double no because 3 < 2 < 1 < 0 returns
> F. It looks like the multiplication of -1 what is strange, because F
> corresponds to the value 0. So if you do (3<2)*(2<1) you get 0 and not the
> value of T (=1).
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-- Mag. David Meyer Wiedner Hauptstrasse 8-10 Vienna University of Technology A-1040 Vienna/AUSTRIA Department for Statistics, Probability Tel.: (+431) 58801/10772 Theory and Actuarial Mathematics mail: david.meyer@ci.tuwien.ac.at -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2.1.3 : Wed 10 Mar 2004 - 08:18:18 EST