[R] Summary shows wrong maximum

Sebastian Spaeth sspaeth at ethz.ch
Mon Dec 4 13:08:25 CET 2006


Uwe Ligges wrote:
>>> max(libs[,"cum_hardreuses"])
>> [1] 1793
>>> summary(libs[,"cum_hardreuses"])
>>     Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
>>        1       2       4      36      14    1790
>> (note the max value of 1790) Ouch this is bad! Anything I can do to 
>> remedy  this? Known bug?

> No, it's a feature! See ?summary: printing is done up to 3 significant 
> digits by default. If you want it more precise, for example use:

Thanks for the info. Good to know. I didn't think that it would round 
pre-comma digits though.

Grateful,
Sebastian




More information about the R-help mailing list