Full_Name: G. Grothendieck
Version: R version 2.1.0, 2005-06-10
OS: Windows XP
Submission from: (NULL) (18.104.22.168)
This is an inconsistency between by and similar functions.
The 'by' function should have an initial line of:
FUN <- match.fun(FUN)
All other similar functions including apply, sapply,
tapply, lapply work like that so 'by' ought to as well.
Here is an example using the 'iris' data set. Suppose we
wish to create a list of rows:
by(iris, row.names(iris), "(")
In every other similar function "(" would have been interpreted
as the intended function but here we get an error that it cannot
find "(". Although such an error is not inconsistent with the
documentation it would seem to violate the consistency of the
R base functions mentioned.
There was a discussion of this on r-devel in this thread:
Says one user, despite lack of unanimity on R-devel, and
definite statements that this is not an actual bug.
Audit (from Jitterbug):
Wed Jun 15 13:00:41 2005 ripley changed notes
Wed Jun 15 13:00:41 2005 ripley moved from incoming to wishlist