R: A Fast Simplified Version of 'tapply'

capply {rmutil} | R 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))`.

[Package rmutil version 1.1.3 Index]