s-news
[Top] [All Lists]

Re: Existence of Methods

To: <JRoyRobertson@rohmhaas.com>
Subject: Re: Existence of Methods
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Thu, 13 Dec 2001 21:32:44 +0000 (GMT)
Cc: <s-news@wubios.wustl.edu>
In-reply-to: <OF7C2D124D.C7910371-ON85256B21.00739CDD@ROHMHAAS.COM>
On Thu, 13 Dec 2001 JRoyRobertson@rohmhaas.com wrote:

> I am using 6.0 Professional on Windows 2000. As I understand it
> "plot.loadings" is a method for plot. However,
> the command  >existsMethod("plot",signature(x="loadings")) returns "F".
> Please explain. Thanks

existsMethod tells you about S4-style formal methods, not S3-style
informal methods, such as plot.loadings()

There's a lot going here, especially with plot() which supports both.

Compare

> methods("plot")

with

> showMethods("plot")

to see the two sets.

For more explanation, see the Green Book (JMC, 1998) or `S Programming'.

-- 
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


<Prev in Thread] Current Thread [Next in Thread>