Skip to content
Prev 395331 / 398503 Next

How to Calculate the Mean by Multiple Groups in R

A variation is to remove Well and then we can use dot to refer to the
remaining columns.

  aggregate(cbind(OD, ODnorm)  ~ . , subset(df, select = - Well), mean)
On Tue, Oct 24, 2023 at 8:32?AM Luigi Marongiu <marongiu.luigi at gmail.com> wrote: