Re: [R] Repeated Aggregation with data.table

2012-09-21 Thread Elliot Joel Bernstein
: Elliot Joel Bernstein elliot.bernstein@fdopartners.**comelliot.bernst...@fdopartners.com To: r-help@r-project.org Cc: Sent: Tuesday, August 7, 2012 5:36 PM Subject: [R] Repeated Aggregation with data.table I have been using ddply to do aggregation, and I frequently define a single

Re: [R] Repeated Aggregation with data.table

2012-09-11 Thread Elliot Joel Bernstein
elliot.bernstein@fdopartners.**comelliot.bernst...@fdopartners.com To: r-help@r-project.org Cc: Sent: Tuesday, August 7, 2012 5:36 PM Subject: [R] Repeated Aggregation with data.table I have been using ddply to do aggregation, and I frequently define a single aggregation function that I

Re: [R] Repeated Aggregation with data.table

2012-08-08 Thread David Winsemius
: Sent: Tuesday, August 7, 2012 5:36 PM Subject: [R] Repeated Aggregation with data.table I have been using ddply to do aggregation, and I frequently define a single aggregation function that I use to aggregate over different groups. For example, require(plyr) dat - data.frame(x = sample(3, 100

Re: [R] Repeated Aggregation with data.table

2012-08-08 Thread arun
Bernstein elliot.bernst...@fdopartners.com; R help r-help@r-project.org Sent: Wednesday, August 8, 2012 9:17 AM Subject: Re: [R] Repeated Aggregation with data.table On Aug 7, 2012, at 9:28 PM, arun wrote: HI, Try this: fun1-function(x,.expr){   .expr-expression(list(mean.z=mean(z),sd.z=sd

[R] Repeated Aggregation with data.table

2012-08-07 Thread Elliot Joel Bernstein
I have been using ddply to do aggregation, and I frequently define a single aggregation function that I use to aggregate over different groups. For example, require(plyr) dat - data.frame(x = sample(3, 100, replace=TRUE), y = sample(3, 100, replace = TRUE), z = rnorm(100)) f - function(x) {

Re: [R] Repeated Aggregation with data.table

2012-08-07 Thread R. Michael Weylandt
On Tue, Aug 7, 2012 at 4:36 PM, Elliot Joel Bernstein elliot.bernst...@fdopartners.com wrote: I have been using ddply to do aggregation, and I frequently define a single aggregation function that I use to aggregate over different groups. For example, require(plyr) dat - data.frame(x =

Re: [R] Repeated Aggregation with data.table

2012-08-07 Thread arun
. - Original Message - From: Elliot Joel Bernstein elliot.bernst...@fdopartners.com To: r-help@r-project.org Cc: Sent: Tuesday, August 7, 2012 5:36 PM Subject: [R] Repeated Aggregation with data.table I have been using ddply to do aggregation, and I frequently define a single aggregation function