| capply {rmutil} | R Documentation |
tapplya fast simplified version of tapply
capply(x, index, fcn=sum)
x |
x |
index |
index |
fcn |
default sum |
a fast simplified version of tapply
Returns ans where for(i in split(x,index))ans <- c(ans,fcn(i)).