capply: A Fast Simplified Version of 'tapply'

View source: R/util.r

capplyR Documentation

A Fast Simplified Version of tapply

Description

a fast simplified version of tapply

Usage

capply(x, index, fcn=sum)

Arguments

x

x

index

index

fcn

default sum

Details

a fast simplified version of tapply

Value

Returns ans where for(i in split(x,index))ans <- c(ans,fcn(i)).


rmutil documentation built on March 18, 2022, 6:55 p.m.

Related to capply in rmutil...