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]]
This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]
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.