Description Usage Arguments Value Note Author(s)
Divide a vector or array in consecutive fixed-sized blocks and sum the elements at each position in these blocks.
1 | bsum(x, block_size = 1)
|
x, |
numerical vector or array, the object that is summed. |
block_size, |
numerical scalar, the size of each block. Defaults to 1. |
numerical vector.
If x
is an array and block_size
is equal to the size of x
's first dimension, then bsum behaves as rowSums.
Ron Triepels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.