purrr icon indicating copy to clipboard operation
purrr copied to clipboard

Typo in examples for purrr::accumulate

Open ScoobyQ opened this issue 2 years ago • 0 comments

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:

ScoobyQ avatar May 09 '22 04:05 ScoobyQ