[R] weird behaviour of summary.default

Stefano Calza stecalza at tiscali.it
Mon Jun 12 14:38:41 CEST 2006


Hi all.

I may missing something here, but if I do summary.default(1:9999), I get:

   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
      1    2500    5000    5000    7500    9999 


but if I do summary.default(1:10001) I get:

   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
      1    2501    5001    5001    7501   10000 

i.e. Max is rounded to 10000.

What's wrong?

My system:

               _                         
platform       i486-pc-linux-gnu         
arch           i486                      
os             linux-gnu                 
system         i486, linux-gnu           
status                                   
major          2                         
minor          3.1                       
year           2006                      
month          06                        
day            01                        
svn rev        38247                     
language       R                         
version.string Version 2.3.1 (2006-06-01)


Regards,
Stefano



More information about the R-help mailing list