Description Usage Arguments Details
Performs a loop over a vector or a list, performing an action on each element. The action has access to an indexing variable marking position in x.
1 |
x |
vector or list |
fun |
function. The structure of the function should be function(i, x) where 'i' is an index variable and 'x' is the data. |
... |
parameters passed on to FUN |
To provide the iterator, the implementation actually uses a for loop.
The names is short for: (ap)ply (w)ith (i)terator
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.