powered by
By(x, INDICES, FUN, COLUMNS, array = FALSE, ...)
By(datasets::CO2,~Treatment+Type,colMeans,~conc) By(datasets::CO2,~Treatment+Type,colMeans,~conc+uptake)
Run the code above in your browser using DataLab