[Rd] "by" speed improvement (PR#11064)

From: <simon.debernard_at_altrabio.com>
Date: Tue, 01 Apr 2008 12:15:05 +0200 (CEST)


Full_Name: Simon de Bernard
Version: 2.7.0 (44733)
OS: MacOS
Submission from: (NULL) (140.77.34.213)

"by" usually takes forever even on a "not so large" data structure.

If one can do with a matrix instead of a data.frame, defining by.matrix as by.data.frame modified to convert data back to a data.frame in the "eval" call improves speed by orders of magnitude (whatever that means ;-) )

I'd suggest defining the by.matrix function directly in R...



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 02 Apr 2008 - 07:18:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Apr 2008 - 15:01:02 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.

list of date sections of archive