[Rd] Defining a S4 method for existing function interaction.plot

From: Thomas Roth (geb. Kaliwe) <hamstersquats_at_web.de>
Date: Mon, 08 Jun 2009 17:18:02 +0200


Dear Members,

i have defined a S4-class and a function for that class wich is to be called interaction.plot. Problem: interaction.plot already exists so

setMethod(f = "interaction.plot", signature = "myClass", definition = function(x){ return(TRUE) })

   Fehler in conformMethod(signature, mnames, fnames, f, fdef, definition) :

   In method for function "interaction.plot": formale Argumente, die in der Methodendefinition ausgelassen wurden, können nicht in der Signatur (x.factor = "myClass") sein

won't work because it is already defined.

Is there a solution that keeps the original interaction.plot and lets me define a interaction.plot for objects of my S4-Class?

Thank you for your time

Thomas Roth



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 08 Jun 2009 - 15:22:48 GMT

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 Mon 08 Jun 2009 - 15:35:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive