[R] summary and min max

Robert Duval rduval at gmail.com
Tue Apr 24 01:15:35 CEST 2007


Has anyone created an alternative summary method where the rounding is
made only for digits to right of the decimal point?

I personally don't like the way summarize works on this particular
issue, but I'm not sure how to modify it generically...

(of course one can always set digits=something_big but this is not
elegant and unpractical when one doesn't know in advance the magnitude
of a number)

robert

On 4/23/07, Mike Prager <mike.prager at noaa.gov> wrote:
> "Sebastian P. Luque" <spluque at gmail.com> wrote:
>
> > I came across a case where there's a discrepancy between minimum and
> > maximum values reported by 'summary' and the 'min' and 'max' functions:
>
> summary() rounds by default. Thus its reporting oddball values
> is considered a feature, not a bug.
>
> --
> Mike Prager, NOAA, Beaufort, NC
> * Opinions expressed are personal and not represented otherwise.
> * Any use of tradenames does not constitute a NOAA endorsement.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>



More information about the R-help mailing list