From ben@eno.Princeton.EDU  Mon Jun 23 17:40:55 1997
From: ben@eno.Princeton.EDU (Ben Bolker)
Date: Mon, 23 Jun 1997 12:40:55 -0400 (EDT)
Subject: R-alpha: comparing alpha and numeric
Message-ID: <Pine.SUN.3.95.970623123919.6004A-100000@paca>


Is this behavior correct? (R 0.49 on SunOS 4.1.4)

> "a">1
 TRUE
> "a"<1
 FALSE
> "a"==1
 FALSE
> "a">2
 TRUE
> "a"<2
 FALSE

 (I know, this is like the old joke: "Doctor, it hurts when I do this."
"Well, don't do that!"  But it might be useful to have this caught by an
error or warning message ...)

Benjamin Bolker          Dep't of Ecology and Evolutionary Biology,
ben@eno.princeton.edu    Princeton University
tel: (609) 258-6886,     fax: (609) 258-1334

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