From ggrothendieck at gmail.com  Sun Jun 12 20:10:40 2005
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Sun, 12 Jun 2005 14:10:40 -0400
Subject: [Rd] by should use match.fun
Message-ID: <971536df0506121110777ddbf@mail.gmail.com>

I noticed that, unlike similar functions, 'by' does not use match.fun, e.g.

> by(iris, iris$Species, "summary")
Error in FUN(X[[1]], ...) : couldn't find function "FUN"

The 'by' code should have an initial line of:

FUN <- match.fun(FUN)



[Rd] by should use match.fun
Gabor Grothendieck