Does anyone have something like tapply for matrices? I would like to average the contents of columns according to factors but tapply works only with one column at each time. Is something available to do everything in one step? Many thanks. Manuel Montes