From thomas@biostat.washington.edu  Mon Jun 23 17:46:57 1997
From: thomas@biostat.washington.edu (Thomas Lumley)
Date: Mon, 23 Jun 1997 09:46:57 -0700 (PDT)
Subject: R-alpha: comparing alpha and numeric
In-Reply-To: <Pine.SUN.3.95.970623123919.6004A-100000@paca>
Message-ID: <Pine.SUN.3.95.970623094548.1180A-100000@zen>

On Mon, 23 Jun 1997, Ben Bolker wrote:

> 
> Is this behavior correct? (R 0.49 on SunOS 4.1.4)
> 
> > "a">1
>  TRUE
> > "a"<1
<etc> 

It gets worse
> "3">4
[1] FALSE
> "3"<4
[1] TRUE
> "3"==4
[1] FALSE
> "3"==3
[1] TRUE
all well and good, and perhaps even useful, but
> "23"<3 
[1] TRUE
Ouch.

Thomas Lumley
------------------------------------------------------+------
Biostatistics		: "Never attribute to malice what  :
Uni of Washington	:  can be adequately explained by  :
Box 357232		:  incompetence" - Hanlon's Razor  :
Seattle WA 98195-7232	:				   :
------------------------------------------------------------

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel 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-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: comparing alpha and numeric
Thomas Lumley