Re: [R] Help with ddply/summarize

2014-11-14 Thread John Posner
Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of John Posner > Sent: Thursday, November 13, 2014 5:32 PM > To: 'r-help@r-project.org' > Subject: [R] Help with ddply/summarize > > I have a straightforwa

Re: [R] Help with ddply/summarize

2014-11-14 Thread David L Carlson
2014 5:32 PM To: 'r-help@r-project.org' Subject: [R] Help with ddply/summarize I have a straightforward application of ddply() and summarize(): ddply(MyFrame, .(Treatment, Week), summarize, MeanValue=mean(MyVar)) This works just fine: Treatment Week MeanValue 1MyDrug BASE

Re: [R] Help with ddply/summarize

2014-11-13 Thread David Winsemius
On Nov 13, 2014, at 3:31 PM, John Posner wrote: > I have a straightforward application of ddply() and summarize(): > > ddply(MyFrame, .(Treatment, Week), summarize, MeanValue=mean(MyVar)) > > This works just fine: > > Treatment Week MeanValue > 1MyDrug BASELINE 5.91 > 2My

[R] Help with ddply/summarize

2014-11-13 Thread John Posner
I have a straightforward application of ddply() and summarize(): ddply(MyFrame, .(Treatment, Week), summarize, MeanValue=mean(MyVar)) This works just fine: Treatment Week MeanValue 1MyDrug BASELINE 5.91 2MyDrugWEEK 1 4.68 3MyDrugWEEK 2 4.08 4MyDr