Learn R Programming

clickR (version 0.9.45)

mtapply: Multiple tapply

Description

Modification of the tapply function to use with data.frames. Consider using aggregate()

Usage

mtapply(x, group, fun)

Arguments

x

A data.frame

group

Grouping variable

fun

Function to apply by group

Examples

Run this code
mtapply(mtcars, mtcars$gear, mean)

Run the code above in your browser using DataLab