Skip to content
Prev 323565 / 398503 Next

Error in colMeans with multiple column data.frame

Hi,

I renamed your data.frame "df", as "data" is a built-in function.

You can achieve what you are looking for with:

 > datf.mean <- with(datf, aggregate(datf[,-6], list(interval=interval), 
mean))

Advice:
Next time, use "dput" when you submit a data set to R-help.

Hope this helps,
Pascal
On 05/15/2013 06:46 PM, Simonas Kecorius wrote: