[R] a<b<c

Ross Ihaka ihaka at stat.auckland.ac.nz
Fri Jul 6 23:36:52 CEST 2001


Andy Peek wrote:
> 
> > 3<2<1
> [1] TRUE
> > 4<3<2
> [1] TRUE
> > 12<4<1
> [1] TRUE
> > 7<6<5<4
> [1] TRUE
> > 8<7<6<5<4
> [1] TRUE
> > 27<26<25
> [1] TRUE
> > 9<8<7<6<5<4<3<2
> [1] TRUE
> > 9<8<7<6<5<4<3
> [1] TRUE
> > 9<8<7<6<5<4
> [1] TRUE
> > 9<8<7<6<5
> [1] TRUE
> > 9<8<7<6
> [1] TRUE
> > 9<8<7
> [1] TRUE
> > 4<3<2<1
> [1] FALSE
> > 5<4<3<2<1
> [1] FALSE
> 10<9<8<7<6<5<4<3<2<1
> [1] FALSE
> > 9<8<7<6<5<4<3<2<1
> [1] FALSE
> > 9<8
> [1] FALSE
> > 8<7<6<5<4<3<2<1
> [1] FALSE
> > 7<6<5<4<3<2<1
> [1] FALSE
> > 6<5<4<3<2<1
> [1] FALSE
> > 5<4<3<2<1
> [1] FALSE
> > 4<3<2<1
> [1] FALSE
> > 3<2<1
> [1] TRUE
> 
> 3<2<1  appears not to be a special case for TRUE

Think about :

> (3<2)<1
[1] TRUE
> 3<(2<1)
[1] FALSE


-- 
Ross Ihaka                         Email:  ihaka at stat.auckland.ac.nz
Department of Statistics           Phone:  (64-9) 373-7599 x 5054
University of Auckland             Fax:    (64-9) 373-7018
Private Bag 92019, Auckland
New Zealand
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list