Skip to content
Prev 105493 / 398503 Next

Summary shows wrong maximum

On Mon, 2006-12-04 at 12:04 +0100, Sebastian Spaeth wrote:
Did you read ?summary, which has:

 ## Default S3 method:
     summary(object, ..., digits = max(3, getOption("digits")-3))

so this is a rounding issue of the *printed* representation of the
summary. Just change digits to be a larger number:
[1] 2.434443
Min.  1st Qu.   Median     Mean  3rd Qu.     Max.
-2.21100 -0.65450  0.03793  0.06919  0.84650  2.43400
Min.     1st Qu.      Median        Mean     3rd Qu.        Max.
-2.21106232 -0.65451716  0.03793040  0.06919486  0.84652269  2.43444263
[1] 2434442
Min.  1st Qu.   Median     Mean  3rd Qu.     Max.
-2211000  -654500    37930    69190   846500  2434000
Min.     1st Qu.      Median        Mean     3rd Qu.        Max.
-2211063.00  -654517.50    37930.00    69194.38   846522.00  2434442.00

HTH

G