[R] zeros in table() output in version 1.3.1

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Oct 25 22:56:40 CEST 2001


On Wed, 24 Oct 2001, Mark Myatt wrote:

> Steve Shiboski <steve at biostat.ucsf.edu> writes:
> >Are the following differences in table() output
> >between versions 1.3.0 and 1.3.1 a feature, a bug
> >or a problem with my implementation?
> >
> >(I am running under Solaris 2.7 SPARC, built using the
> >Sun C and FORTRAN compilers.)
> >
> >Version 1.3.1:
> >
> >> table(c(0,1),c(0,1))
> >
> >    1
> >  1 1
> >
> >Version 1.3.0:
> >
> >> table(c(0,1),c(0,1))
> >
> >    0 1
> >  0 1 0
> >  1 0 1
>
> Odd. I don't get this behaviour on my Windows box. I think that,
> perhaps, it is down to how the binary was compiled. Did you use the Sun
> tools or the GNU tools?

I don't see it on Solaris 2.7 built with Sun's C and Fortran using either
Sun or GNU tools.   So it seems definitely a priblem with one specific
installation.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list