Re: [R] max & summary contradict each other

2012-09-28 Thread arun
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 To: r-help@r-project.org Cc: Sent: Friday, September 28, 2012 12:14 PM Subject: [R] max & sum

Re: [R] max & summary contradict each other

2012-09-28 Thread Duncan Murdoch
On 28/09/2012 12:14 PM, Sam Steingold wrote: why does summary report max 27600 and not 27603? > x <- c(27603, 1) > max(x) [1] 27603 > summary(x) Min. 1st Qu. MedianMean 3rd Qu.Max. 16902 13800 13800 20700 27600 Because you asked for 3 digit accuracy. See ?summ

[R] max & summary contradict each other

2012-09-28 Thread Sam Steingold
why does summary report max 27600 and not 27603? > x <- c(27603, 1) > max(x) [1] 27603 > summary(x) Min. 1st Qu. MedianMean 3rd Qu.Max. 16902 13800 13800 20700 27600 -- Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000 http://www.chi