R-alpha: NextMethod
Jim Lindsey
jlindsey@luc.ac.be
Wed, 12 Nov 1997 10:03:59 +0100 (MET)
Here is something that I am sure has been discussed before, but I
don't understand what is going on.
I am building some functions for ordinal variables on top of the glm
class. Take one with class lmov as well as glm and lm in that order.
In summary.lmov and print.lmov, is print out some information and then
use NextMethod. summary works fine in all cases. However, if z has
class lmov, print(z) works fine but just typing the name, z, prints
out what I want in print.lmov and then says it cannot find print.lmov
instead of using print.glm (which it finds when print(z) is used).
Jim
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=