From rgentlem@jimmy.harvard.edu  Mon Nov  1 22:03:15 1999
From: rgentlem@jimmy.harvard.edu (Robert Gentleman)
Date: Mon, 1 Nov 1999 17:03:15 -0500
Subject: bug in sample (PR#305)- apologies
In-Reply-To: <x21za9ri0d.fsf@blueberry.kubism.ku.dk>; from Peter Dalgaard BSA on Mon, Nov 01, 1999 at 10:58:42PM +0100
References: <199911012133.WAA01606@pubhealth.ku.dk> <x21za9ri0d.fsf@blueberry.kubism.ku.dk>
Message-ID: <19991101170315.Q13888@jimmy.harvard.edu>

Oops,
  Somehow I'm not connecting with my mailer properly today...

  What I wanted to point out was the lack of a warning there and the
  following:

> y<-sample(3)
> y
[1] 2 3 1
> v<-as.factor(y)
> is.numeric(v)
[1] TRUE

  Whereas in Splus:

>  y<-sample(3)
>  v<-as.factor(y)
> is.numeric(v)
[1] F

  Did I miss a discussion of this (I would prefer if is.numeric was
false for factors).

 robert

-- 
+-------------------------------------------------------------------------+
| Robert Gentleman              voice: (617) 632-5045                     |
| Senior Lecturer               fax:   (617) 632-2444                     |
| University of Auckland	email1: rgentlem@jimmy.harvard.edu        |
| on leave at:                                                            |
| Dana-Farber Cancer Institute  email2: rgentlem@stat.auckland.ac.nz      |
+-------------------------------------------------------------------------+
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


bug in sample (PR#305)- apologies
Robert Gentleman