Re: [R] Median on Aggregated data

2009-11-18 Thread William Dunlap
re, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Satsangi, > Vivek (GE Capital) > Sent: Wednesday, November 18, 2009 1:55 PM > To: r-help@r-project.org > Subject:

Re: [R] Median on Aggregated data

2009-11-18 Thread David Winsemius
On Nov 18, 2009, at 4:55 PM, Satsangi, Vivek (GE Capital) wrote: Folks, I have the following code, that works fine on smaller data sets. For larger datasets, it runs out of memory and runs way too slow because we are essentially creating large vectors with rep() and then calling median() on

[R] Median on Aggregated data

2009-11-18 Thread Satsangi, Vivek (GE Capital)
Folks, I have the following code, that works fine on smaller data sets. For larger datasets, it runs out of memory and runs way too slow because we are essentially creating large vectors with rep() and then calling median() on it. (I learned this approach from a post on the web). Below that, I