[R] S4 : Signature

Christophe Genolini cgenolin at u-paris10.fr
Mon Feb 25 01:13:00 CET 2008


Hi the list

Is it possible to define a method with a signature that will have more 
argument than the generic method?
For exemple, print has only one argument, plot has two, can I do 
something like :

setMethod("print",signature=c(x="numeric",y="character"),function(x,y,...) 
......
setMethod("plot",signature=c(x="numeric",y="character",z="numeric"),function(x,y,z,...) 
......

Thanks

Christophe



More information about the R-help mailing list