[Rd] Table Command (PR#1182)

mdesai@biostat.cpmc.columbia.edu mdesai@biostat.cpmc.columbia.edu
Tue, 27 Nov 2001 21:02:44 +0100 (MET)


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 


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._