Skip to content

groupe averages error

1 message · Brian Ripley

#
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.