[R] generic default values

Paul Gilbert pgilbert at bank-banque-canada.ca
Mon Oct 1 18:41:16 CEST 2001


I have a generic function

test.equal <- function(obj1, obj2, ...) UseMethod("test.equal")

however, the only argument that specific methods use is "fuzz" so I
would like to change this to

test.equal <- function(obj1, obj2, fuzz=???) UseMethod("test.equal")

The problem is that some methods use slightly different default values
for fuzz than others. How should the generic be specified to allow this?

Thanks,
Paul Gilbert

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list