is.numeric(factor(...)) {was: bug in sample (PR#305)}

About this list Date view Thread view Subject view Author view Other groups

Subject: is.numeric(factor(...)) {was: bug in sample (PR#305)}
From: Martin Maechler (maechler@stat.math.ethz.ch)
Date: Tue 02 Nov 1999 - 19:47:20 EST


Message-ID: <14366.45864.342308.408958@gargle.gargle.HOWL>

Before turning this into a new bug report (not connected to sample() at all):
{ factor() behavior redesigning must be done carefully... }
Some detective work reveals

R versions from 0.50 to 0.61.3 all give

  is.numeric(gl(3,5,15))
                         |-> FALSE

Since R version 0.62.1 (June 15, 1998),
the above gives TRUE.
  
The NEWS for 0.62[.1] has

    o All internal mechanisms to support factors and data.frames have
        been removed. These are now entirely supported by interpreted
        code! `is.unordered' has been eliminated. Thanks to John
        Chambers for allowing the distribution of his StatLib code.

i.e., they change occurded when we dropped the internal factor type...

--

Yes, my gut feeling also says that the current behavior is wrong...

-- Martin Maechler <maechler@stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <>< -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:09 EST