Re: [Rd] question about trailing arguments in an S4 method

From: Ben Bolker <bolker_at_zoo.ufl.edu>
Date: Tue 19 Dec 2006 - 21:58:54 GMT

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



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Dec 20 19:00:37 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 20 Dec 2006 - 08:31:04 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.