Re: [R] aggregate.formula: formula from string

2012-10-31 Thread arun
help Sent: Wednesday, October 31, 2012 8:30 AM Subject: RE: [R] aggregate.formula: formula from string Dear Arun, Thanks for your suggestion, that does the trick. Just because I'm curious, where does the problem come from? I figured that wrapping the formula object in brackets wou

Re: [R] aggregate.formula: formula from string

2012-10-31 Thread Thaler,Thorn,LAUSANNE,Applied Mathematics
s the root cause? Thanks for your help! KR, -Thorn > -Original Message- > From: arun [mailto:smartpink...@yahoo.com] > Sent: Mittwoch, 31. Oktober 2012 13:15 > To: Thaler,Thorn,LAUSANNE,Applied Mathematics > Cc: R help > Subject: Re: [R] aggregate.formula: formula fro

Re: [R] aggregate.formula: formula from string

2012-10-31 Thread arun
d(y, z) ~ a + b, d, mean) colnames(res)[3:4]<-colnames(res1)[3:4]  identical(res,res1) #[1] TRUE A.K. - Original Message - From: "Thaler,Thorn,LAUSANNE,Applied Mathematics" To: "r-help@r-project.org" Cc: Sent: Wednesday, October 31, 2012 5:46 AM Subject: [R] ag

[R] aggregate.formula: formula from string

2012-10-31 Thread Thaler,Thorn,LAUSANNE,Applied Mathematics
Dear all, I want to use aggregate.formula to conveniently summarize a data.frame. I have quiet some variables in the data.frame and thus I don't want to write all these names by hand, but instead create them on the fly. This approach has the advantage that if there will be even more columns in