capply: A Fast Simplified Version of 'tapply'

Description Usage Arguments Details Value

View source: R/util.r

Description

a fast simplified version of tapply

Usage

1
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 May 27, 2018, 5:03 p.m.