Re: [Rd] by should use match.fun

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sun 12 Jun 2005 - 20:49:29 GMT

Gabor Grothendieck <ggrothendieck@gmail.com> writes:

> On 6/12/05, Simon Urbanek <simon.urbanek@r-project.org> wrote:
....
> > Umm.. why don't you just use
> >
> > by(iris, row.names(iris), `(`)
> >
> > In general I consider passing functions as text unnecessary - the
> > only use I could think of is constructing function names from strings/
> > data and I'm not sure that is a good idea, either (it causes quite
> > some performance issues) ... just my 2 pennies ...
>
> That's a good idea and I will change my code accordingly although it does
> not change the fact that an inconsistency remains and should be
> corrected.

Also, match.fun takes some pains to actually give you a function, guarding the user against the (otherwise well-deserved...) consequences of storing results in an object called "summary", etc.

So, good idea. Maybe not for 2.1.1 though. This close to a release we should be going strictly after actual bugs, not just inconsistencies.

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon Jun 13 06:52:49 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:17 GMT