[Rd] by should use match.fun

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sun 12 Jun 2005 - 18:10:40 GMT


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)



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon Jun 13 04:15:14 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:09 GMT