| traverse | R Documentation |
Call .f once per position across several equal-length vectors or lists,
passing the i-th element of each as a positional argument. The parallel-map
companion to map().
traverse(.l, .f, ...)
.l |
A list of vectors or lists with a common length. |
.f |
A function or function name. |
... |
Additional arguments passed to |
traverse() returns a list.
traverse(list(a = 1:2, b = 10:11), function(a, b) a + b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.