Displaying 1 result from an estimated 1 matches for "setmakegenericmethod".
2004 Jun 19
0
setGeneric / standardGeneric when args are not "literals" - corrected
This is a correction to my previous message, I forgot to swap two lines
in the body of setMakeGenericMethod. Sorry about that. The correct (full
message) reads like this:
Hi,
This works
> setGeneric("clear", function(obj) standardGeneric("clear"))
[1] "clear"
but this doesn't. Why?
> funName <- "clear"
> setGeneric(funName, function(obj) stan...