Re: [R] Summary method needed?

From: Heinz Tuechler <>
Date: Thu 03 Aug 2006 - 18:39:35 EST

At 21:04 02.08.2006 +0100, Prof Brian Ripley wrote:
>On Wed, 2 Aug 2006, Christian Hennig wrote:
>> Thank you Brian!
>> > > I'm updating my fpc package at the moment and will add some new
>> > > I learned that there should be print and summary methods for the key
>> > > functions.
>> >
>> > for 'classes', I think.
>> Yes.
>> > > But in some cases the print method will make use of more or less all
>> > > output information of the function. Is there any reason to implement a
>> > > summary method in these cases?
>> >
>> > Would a more concise print() method be useful? If so the existing
>> > could become summary().
>> :-)
>> What I initially did some years ago was to write summary methods to
print out
>> the required informations. Then M. Maechler told me that this is not the
>> purpose of a summary method and I should write a print.summary method for
>> this. Now I realise that I actually just want to print, and I don't really
>> need the extra "synopsis" to be done by summary().
>> Now is there any recommendation on this? My intuition would be to write a
>> print, but not a summary method.
>That sounds fine for your purposes.

Maybe I am wrong, but as far as I see, print() has the disadvantage that it has to return x and must not return the summarized results as an object. You remember the difficulties with print.survfit. Instead it seems to be allowed that summary does not only print but also return summarized results.
Is that right?


>Brian D. Ripley,
>Professor of Applied Statistics,
>University of Oxford, Tel: +44 1865 272861 (self)
>1 South Parks Road, +44 1865 272866 (PA)
>Oxford OX1 3TG, UK Fax: +44 1865 272595
> mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.
> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu Aug 03 18:55:02 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 03 Aug 2006 - 20:17:22 EST.

Mailing list information is available at Please read the posting guide before posting to the list.