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 Oct. 29, 2022, 1:08 a.m.

Related to capply in rmutil...