mtapply | R Documentation |
Modification of the tapply function to use with data.frames. Consider using aggregate()
mtapply(x, group, fun)
x |
A data.frame |
group |
Grouping variable |
fun |
Function to apply by group |
mtapply(mtcars, mtcars$gear, mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.