Re: [Rd] Rounding in print.summaryDefault()

2017-05-28 Thread Arne Henningsen
Thanks for all your responses. The issue seems to be more complex than I thought. Here is the output of Sys.info() and sessionInfo() on my GNU/Linux machine (Ubuntu 16.04.02 LTS): R> a <- 1234568.01 + c(0:1) R> a [1] 1234568 1234569 R> summary(a) Min. 1st Qu. MedianMean 3rd Qu.Max. 1234

Re: [Rd] Rounding in print.summaryDefault()

2017-05-28 Thread Joris Meys
Might this be related to the Linux version? I'm testing on one of our university servers, and they tend to be deprived of regular updates sometimes... (Dirk, sorry for sending you this twice.) > Sys.info() sysname "Linux"

Re: [Rd] Rounding in print.summaryDefault()

2017-05-28 Thread Joris Meys
Weird, because the output of Windows is actually correct. The exact mean of a is 1234568.51, which rounds to 1234569. I can reproduce the Windows output on a Windows machine. My Debian server has R 3.3.1 , and there I can reproduce your output using: > summary(a, digits = 8) Min. 1st Qu. Medi

Re: [Rd] Rounding in print.summaryDefault()

2017-05-28 Thread Dirk Eddelbuettel
On 28 May 2017 at 17:37, Arne Henningsen wrote: | Dear all | | I am happy that summary.default() no longer rounds since R 3.4.0. | | However, in R 3.4.0, in a few cases, print.summaryDefault() rounds the | mean value (and the median value) differently on my GNU/Linux machine | and on my colleagu