From ripley@stats.ox.ac.uk  Tue May  7 21:04:14 2002
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Tue, 7 May 2002 21:04:14 +0100 (BST)
Subject: [Rd] Generic/method consistency in print and summary
In-Reply-To: <pqagdusnjm16vlm3k40smfnlaok013e04m@4ax.com>
Message-ID: <Pine.LNX.4.31.0205072102580.8910-100000@gannet.stats>

On Tue, 7 May 2002, Duncan Murdoch wrote:

> In R 1.5.0 (and earlier):
>
>  > print
>  function (x, ...)
>  UseMethod("print")
>  > summary
>  function (object, ...)
>  UseMethod("summary")
>
> Is there a reason for this inconsistency in the name of the object?

Long-term S compatibility.  It's been like that since at least 1991.

> It makes a single help file for both functions look ugly, because it
> has to document both "x" and "object", which are really the same
> thing.

\item{x, object} ....

-- 
Brian D. Ripley,                  ripley@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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Generic/method consistency in print and summary
ripley@stats.ox.ac.uk