Description Usage Arguments Details Value See Also Examples

`for.each`

takes a function and a set of sequences (vectors, lists or
pairlists), and applies the function successively to each set of elements
that are in the sequences at the same positional index.

1 |

`f` |
A function to apply. |

`...` |
Vectors, lists or pairlists. |

This function combines `link{zip}`

and `link{do.call}`

, to apply
a provided function successively to the elements of several sequences. The
arity of the function must be compatible with the number of sequences
passed as arguments; if not, an error will result.

As in `zip`

, if not all sequences are the same length, shorter
sequences will be recycled to match the lengths of longer ones.

The value of f on the last set of parameters supplied to it, or NULL if no or only zero-length sequences were supplied as arguments.

`link{zip}`

for the operation of zipping the parameter sequences.

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.