search for: c01orc02

Displaying 1 result from an estimated 1 matches for "c01orc02".

2006 Apr 12
1
yet another problem with S4 dispatch (with setClassUnion)
...ic"), prototype =c(a=0)) setClass("C01", representation(a="numeric",b="numeric"), contains= "C00") setClass("C02", representation(a="numeric",d="numeric"), contains= "C00") #with setClassUnion: setClassUnion("C01OrC02", c("C01","C02")) # "+" methods for C00 and C01OrC02 # that this is a function to be dispatched on two arguments is # not important for this example setMethod("+", signature=c("C00","C00"), function(e1,e2){e1 at a+e2...