purrr
purrr copied to clipboard
Typo in examples for purrr::accumulate
In the accumulate examples here: https://purrr.tidyverse.org/reference/accumulate.html, I think there maybe a wrong description for the example block below. I think last and first need to be swopped.
This:
With an associative operation, the final value is always the same, no matter the direction. You'll find it in the last element for a backward (left) accumulation, and in the first element for forward (right) one:
Would be:
With an associative operation, the final value is always the same, no matter the direction. You'll find it in the first element for a backward (left) accumulation, and in the last element for forward (right) one: