[R] Max vs summary inconsistency

Adam D. I. Kramer adik at ilovebacon.org
Mon Aug 27 20:04:04 CEST 2007


Hello,

I'm having the following questionable behavior:

> summary(m)
    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
       1   13000   26280   25890   38550   50910 
> max(m)
[1] 50912

> typeof(m)
[1] "integer"
> class(m)
[1] "integer"

...it seems to me like max() and summary(m)[6] ought to return the same
number. Am I doing something wrong?

I'm running R 2.5.1 (2007-06-27), installed on MacOSX from the dmg file
found on CRAN.

--
Adam D. I. Kramer
Ph.D. Student, University of Oregon
adik at uoregon.edu



More information about the R-help mailing list