[R] summary and min max

Bert Gunter gunter.berton at gene.com
Tue Apr 24 01:30:57 CEST 2007


I believe it is fair to say that this is where (S3 to keep it simple)
classes come in handy: Class the sorts of objects you're working with, say
"MyClass," and then write your own summary.MyClass() method.


Bert Gunter
Genentech Nonclinical Statistics


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Robert Duval
Sent: Monday, April 23, 2007 4:16 PM
To: r-help at stat.math.ethz.ch
Subject: Re: [R] summary and min max

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.
>

______________________________________________
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