Hi,
Try this:
summary(x,digits=max(5))
#?? Min. 1st Qu.? Median??? Mean 3rd Qu.??? Max.
? #? 1.0? 6901.5 13802.0 13802.0 20702.0 27603.0
A.K.
----- Original Message -----
From: Sam Steingold <sds at gnu.org>
To: r-help at r-project.org
Cc:
Sent: Friday, September 28, 2012 12:14 PM
Subject: [R] max & summary contradict each other
why does summary report max 27600 and not 27603?
> x <- c(27603, 1)
> max(x)
[1] 27603> summary(x)
? Min. 1st Qu.? Median? ? Mean 3rd Qu.? ? Max.
? ? ? 1? ? 6902? 13800? 13800? 20700? 27600
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://memri.org http://pmw.org.il
http://dhimmi.com http://iris.org.il http://mideasttruth.com
Vegetarians eat Vegetables, Humanitarians are scary.
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.