Description Usage Arguments Value Author(s) References Examples
Applies a function by every n values to a vector.
1 |
invec |
The input vector. |
n |
By how many values? |
FUN |
The function to apply to each set of n values. |
fill |
The value to padd the resulting vector with. Defaults to |
include_first |
Logical. Should the first value be included. Defaults to |
A vector the same length as the input vector.
Ananda Mahto
http://stackoverflow.com/q/34563693/1270695
1 2 3 4 5 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.