mtapply: Multiple tapply

View source: R/descriptive.R

mtapplyR Documentation

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

mtapply(mtcars, mtcars$gear, mean)

David-Hervas/clickR documentation built on Feb. 15, 2024, 8:33 p.m.