Dear R-devel

Thought I better report this. An example is shown below.

> vec <- rnorm(100)+10.5
> ss <- summary(vec)
> print(ss)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
  8.433   9.886  10.450  10.560  11.300  12.720
> for(kk in 1:length(ss)) print(ss[[kk]])
[1] 8.433
[1] 9.886
[1] 10.45
[1] 10.56
[1] 11.3
[1] 12.72
> print(mean(vec))
[1] 10.56399

Note the difference between 10.56399 and 10.560.
It may confuse users that the number of significant digits is smaller than the 
number of digits shown by the print of a summary object (at least it confused 
me).

Yours
Ole F. Christensen

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to