[R] inconsistent behavior of summary function

From: Jeanne M. Spicer <xn8spicer_at_gmail.com>
Date: Mon, 03 Oct 2011 23:12:21 -0400


The summary function behaves inconsistently with data frame columns, e.g.

summary(rock) #max of area 12212, correct summary(rock$area) #max of area 12210, incorrect max

I know that
summary(rock$area, digits=5)
will correct the error (I DID read the manual). But my point is the inconsistency, because I get the correct answer without having to add the digits option in the first statement when referring to the full dataframe. This is one of the first functions that beginners use and if they have to RTM and tinker with options before they can get a consistent value for the max of an integer column, it is off-putting to say the least. At worst it confirms the skeptic's suspicion that open-source software is a bit flaky. Would it be out of line to report this to r-bugs -- at least to improve on the documentation?

-jms
r2.13.1 maclion

        [[alternative HTML version deleted]]



R-help_at_r-project.org 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. Received on Tue 04 Oct 2011 - 04:18:18 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 04 Oct 2011 - 15:40:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive