Skip to content
Prev 70311 / 398506 Next

S4 method inheritance

On Tue, May 24, 2005 at 07:07:07AM -0400, Duncan Murdoch wrote:
Oops, I keep taking the references to "objects" too literally.  Thanks.
There's my confusion: the first argument should be the name of the
generic, not the class.
Just for clarification, "in place function" was in contrast to a
function defined elsewhere with an explicit name, e.g.,
   fforA<-function(x) something
   setMethod("foo", signature(blah="numeric"), fforA)
In that case I could just refer to fforA directly. (Trying to avoid
the S3ish f.A).

Is sounds as if the use of as() or callNextMethod() will get me what I
want.  And the docs seem clear that callNextMethod() returns control
(and a value) to the calling function.

Thanks to everyone for their help.