reduce | R Documentation |
Inspired by reduce()
from the purrr
package
reduce(.x, .f, ..., .init)
.x |
A list or atomic vector. |
.f |
A 2-argument function. The function will be passed the accumulated value as the first argument and the "next" value as the second argument. |
... |
Additional arguments passed on to |
.init |
If supplied, will be used as the first value to start
the accumulation, rather than using |
Jonathon Love jon@thon.cc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.