Re: [R] remove rows in data frame by average

2013-02-22 Thread David Winsemius
tfire, TIBCO Software > wdunlap tibco.com > > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On >> Behalf >> Of arun >> Sent: Thursday, February 21, 2013 1:45 PM >> To: Johannes Brand >> Cc: R

Re: [R] remove rows in data frame by average

2013-02-21 Thread William Dunlap
wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of arun > Sent: Thursday, February 21, 2013 1:45 PM > To: Johannes Brand > Cc: R help > Subject: Re: [R] remove rows in data frame by ave

Re: [R] remove rows in data frame by average

2013-02-21 Thread Anthony Damico
,res2$Subject)) > res2 > # Subject Block Feature1 Feature2 > #1 1 1 55.0 29.0 > #2 1 2 42.5 38.5 > #3 1 3 64.0 14.0 > #4 2 1 51.0 25.0 > #5 2 2 56.5 45.0 > #6 2 3 38.0

Re: [R] remove rows in data frame by average

2013-02-21 Thread arun
56.5 45.0 #6   2 3 38.0 28.0 A.K. - Original Message - From: Johannes Brand To: r-help@r-project.org Cc: Sent: Thursday, February 21, 2013 12:02 PM Subject: [R] remove rows in data frame by average Dear all, I have a data frame, which looks like this: Subject | Block | Trial

[R] remove rows in data frame by average

2013-02-21 Thread Johannes Brand
Dear all, I have a data frame, which looks like this: Subject | Block | Trial | Feature1 | Feature2 1 | 1 | 1 | ... | ... 1 | 1 | 2 | ... | ... 1 | 2 | 1 | ... | ... 1 | 2 | 2 | ... | ... 1 | 3 | 1 | ... | ... ...| ...| ...| ... | ... Can I remove the "Trial" column by averaging all the row