powered by
Modification of the tapply function to use with data.frames. Consider using aggregate()
mtapply(x, group, fun)
A data.frame
Grouping variable
Function to apply by group
mtapply(mtcars, mtcars$gear, mean)
Run the code above in your browser using DataLab