Re: [R] dynamic list in aggregate()

2012-08-31 Thread arun
  0.14874737 #4  d  d -0.21051512 #5  e  b  0.18821072 A.K. - Original Message - From: Xianming Wei To: "r-help@r-project.org" Cc: Sent: Thursday, August 30, 2012 10:37 PM Subject: [R] dynamic list in aggregate() Hi all, How can I have a dynami

Re: [R] dynamic list in aggregate()

2012-08-30 Thread William Dunlap
Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Xianming Wei > Sent: Thursday, August 30, 2012 7:37 PM > To: r-help@r-project.org > Subject: [R] dynamic list in

[R] dynamic list in aggregate()

2012-08-30 Thread Xianming Wei
Hi all, How can I have a dynamic list for different combinations of grouping factors in the following example? Thanks. dat <- data.frame(x=rnorm(100), a=sample(letters[1:5], replace = T), b=sample(letters[1:5], replace = T), c=sample(letters[