From p.dalgaard@biostat.ku.dk  Tue Nov 27 20:14:08 2001
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 27 Nov 2001 21:14:08 +0100
Subject: [Rd] Table Command (PR#1182)
In-Reply-To: <200111272002.VAA16156@pubhealth.ku.dk>
References: <200111272002.VAA16156@pubhealth.ku.dk>
Message-ID: <x24rnghsz3.fsf@blueberry.kubism.ku.dk>

mdesai@biostat.cpmc.columbia.edu writes:

> Full_Name: Manisha Desai
> Version: 1.3.0
> OS: UNIX
> Submission from: (NULL) (156.111.36.213)
> 
> 
> There may be a bug in the table command.  
> The value of 0 does not appear to show up (at least in this version of R).  
> The following is an example:
> 
> > blah<-c(rep(1,100),rep(0,100))
> > table(blah)
> 
> Gives the following:
> 
> blah
>   1
> 100
> 
> Doing a summary shows that blah does contain values of 0.  
> 
> > summary(blah)
>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
>     0.0     0.0     0.5     0.5     1.0     1.0 

Doesn't happen on any version of "UNIX" that I have access to. I think
we had a report once where something like that was caused by an
incorrect compiler (or compiler flag). We need to have full
information on your system and build to do anything about it.

To wit (Solaris 7, R-1.3.1)

> blah<-c(rep(1,100),rep(0,100))
> table(blah)
blah
  0   1 
100 100 


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Table Command (PR#1182)
Peter Dalgaard BSA