search for: myassign

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

Did you mean: massign
2003 Jul 26
2
How to make "<-" generic?
...eric function with a new signature? The following example doesn't work: > isGeneric("<-") [1] FALSE > setClass("A",representation(x = "numeric")) [1] "A" > setClass("B",representation(x = "numeric")) [1] "B" > myAssign.A <- function(x,value) + { return(x); } > setReplaceMethod("",c("A","B"),myAssign.A) [1] "<-" > ## because > ##> setReplaceMethod > ##function (f, ...) > ##setMethod(paste(f, "<-", sep = ""), ...) > ## and &g...