capply | R Documentation |
tapply
a 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))
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.