From mdesai@biostat.cpmc.columbia.edu  Tue Nov 27 21:07:54 2001
From: mdesai@biostat.cpmc.columbia.edu (Manisha Desai)
Date: Tue, 27 Nov 2001 16:07:54 -0500 (EST)
Subject: [Rd] Table Command (PR#1182)
In-Reply-To: <x24rnghsz3.fsf@blueberry.kubism.ku.dk>
Message-ID: <Pine.SOL.4.33.0111271556500.13397-100000@bernoulli.cpmc.columbia.edu>


Thanks for your response.  Here is some information on my system.  I will
speak with my systems administrator if the problem is not obvious.

Manisha

> version
         _
platform sparc-sun-solaris2.8
arch     sparc
os       solaris2.8
system   sparc, solaris2.8
status
major    1
minor    3.0
year     2001
month    06
day      22
language R



On 27 Nov 2001, Peter Dalgaard BSA wrote:

> 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)
Manisha Desai