Skip to content
Prev 227736 / 398500 Next

Repeated analysis over groups / Splitting by group variable

I would change that first dataOnly in
by(...) or lapply(...) to dataOnly[,-3].

In fact, if the dataframe mydata is suitably
subset, then, because of the as.matrix() in
function(x), both the by() and lapply() methods
will work fine with mydata.

   -Peter Ehlers
On 2010-07-15 15:42, Phil Spector wrote: