Skip to content
Prev 318115 / 398502 Next

remove rows in data frame by average

On Feb 21, 2013, at 2:15 PM, William Dunlap wrote:

            
Apropos something less complex than "the do.call( lapply( split...)) business": 
The same sort of operation is provided by `aggregate` when the function to be applied on all columns is the same:
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