extra arguments to generic functions & bug in model.frame

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
17 Jun 1998 20:41:35 +0200


Jim Robison-Cox <jimrc@mathfs.math.montana.edu> writes:

> 1.  There seems to be a bug in model.frame() using terms() with 2 arguments.

Yes.

> 2.  What is standard practice for setting up instances of a generic function?
>     It seems sensible to me that argument lists should not shrink when 
>     going from the generic function to an instance of that function.

No. There's no limit to what special parameters a specific instance of
a function may implement. So the generic one is generally (x,...).
There's no reason not to allow a specific function to check that it is
getting called with parameters that make sense.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._