Skip to content
Prev 8213 / 398503 Next

groupe averages error

Nor can I, but then I don't have your data, nor the result of traceback()
(which can be *very* helpful).  However, ave() does not apply to
dataframes, and its help page says

Usage:

     ave(x, ..., FUN = mean)

Arguments:

       x: A numeric.

I think you probably need to use by()
for example.