From Martin Maechler <maechler@stat.math.ethz.ch>  Tue Nov  2 09:47:20 1999
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Tue, 2 Nov 1999 10:47:20 +0100 (MET)
Subject: is.numeric(factor(...))  {was: bug in sample (PR#305)}
In-Reply-To: <19991101170315.Q13888@jimmy.harvard.edu>
References: <199911012133.WAA01606@pubhealth.ku.dk>
 <x21za9ri0d.fsf@blueberry.kubism.ku.dk>
 <19991101170315.Q13888@jimmy.harvard.edu>
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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