reduce_right | R Documentation |
These functions were deprecated in purrr 0.3.0. Please use the
.dir
argument of reduce()
instead, or reverse your vectors
and use a left reduction.
reduce_right(.x, .f, ..., .init)
reduce2_right(.x, .y, .f, ..., .init)
accumulate_right(.x, .f, ..., .init)
.x |
A list or atomic vector. |
.f |
For For The reduction terminates early if |
... |
Additional arguments passed on to the mapped function. We now generally recommend against using # Instead of x |> map(f, 1, 2, collapse = ",") # do: x |> map(\(x) f(x, 1, 2, collapse = ",")) This makes it easier to understand which arguments belong to which function and will tend to yield better error messages. |
.init |
If supplied, will be used as the first value to start
the accumulation, rather than using |
.y |
For |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.