[R] Summary shows wrong maximum
Bert Gunter
gunter.berton at gene.com
Wed Dec 6 18:20:30 CET 2006
Folks:
Is
"So this is at best a matter of opinion,
and credentials do matter for opinions."
-- Brian Ripley
an R fortunes candidate?
-- Bert Gunter
On Tue, 5 Dec 2006, Oliver Czoske wrote:
> On Mon, 4 Dec 2006, Uwe Ligges wrote:
>> Sebastian Spaeth wrote:
>>> Hi all,
>>> I have a list with a numerical column "cum_hardreuses". By coincidence I
>>> discovered this:
>>>
>>>> max(libs[,"cum_hardreuses"])
>>> [1] 1793
>>>
>>>> summary(libs[,"cum_hardreuses"])
>>> Min. 1st Qu. Median Mean 3rd Qu. Max.
>>> 1 2 4 36 14 1790
>>>
>>> (note the max value of 1790) Ouch this is bad! Anything I can do to
remedy
>>> this? Known bug?
>>
>> No, it's a feature! See ?summary: printing is done up to 3 significant
>> digits by default.
>
> Unfortunately, '1790' is printed with *four* significant digits, not
> three. The correct representation with three significant digits would have
> to employ scientific notation, 1.79e3.
>
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
______________________________________________
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