[Rd] question about trailing arguments in an S4 method

Ben Bolker bolker at zoo.ufl.edu
Tue Dec 19 22:58:54 CET 2006


Byron Ellis <byron.ellis <at> gmail.com> writes:

> 
> He wants to specify arguments to AIC that act like the "k" argument
> and is thinking of faking it by, essentially, doing another round of
> argument matching on ...
> 
> I think that if you define an S4 generic that only dispatches on the
> first argument you may be able to do it for a specific method. On the
> bright side, the new documentation for AIC would take precedence over
> the stats documentation so the users couldn't actually complain about
> the method not matching the documentation.
>

  I think I'll bite the bullet and define a separate
"AICtab" function that takes a list of objects and
produces an AIC table.

  thanks, all

   Ben  Bolker



More information about the R-devel mailing list