Re: [R] Reshape with multiple aggregate functions

2012-01-18 Thread David Winsemius
On Jan 18, 2012, at 4:06 AM, pengcafe wrote: I have a data frame and I would like to reshape it to wide format while at the same time applying different aggregate functions to each column AND at times multiple aggregate functions: test1 = data.frame( id = c(rep('101',8),rep('102',8)

[R] Reshape with multiple aggregate functions

2012-01-18 Thread pengcafe
I have a data frame and I would like to reshape it to wide format while at the same time applying different aggregate functions to each column AND at times multiple aggregate functions: test1 = data.frame( id = c(rep('101',8),rep('102',8)), phase = rep(c('D','D','L','L'),4),