[R] Summary bug?

About this list Date view Thread view Subject view Author view

Alvaro A. Novo (novo@uiuc.edu)
Mon, 18 Oct 1999 23:41:07 -0500



Hi,

It seems that there's a bug in summary, in the max. output... but max() alone
works fine.

> hw04.dframe$area
...
 [41] 1790 1380 1296 2745 798 2306 438649 1481 1559 2450
...

> summary(hw04.dframe)
      area
 Min. : 798
 1st Qu.: 1349
 Median : 1690
 Mean : 6962
 3rd Qu.: 2306
 Max. :438600 ### should read 438649

or, to the point,

> summary(hw04.dframe$area)
   Min. 1st Qu. Median Mean 3rd Qu. Max.
    798 1349 1690 6962 2306 438600
                                       ### should be 438649

> max(hw04.dframe$area)
[1] 438649
> is.data.frame(hw04.dframe)
[1] TRUE

Alvaro A. Novo
R-0.65.1
Linux SuSE 6.1

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Tue 04 Jan 2000 - 13:33:59 EST