apply to rowMeans