You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for accumulate and accumulate2 says that both functions return vectors ("A vector the same length of .x with the same names as .x"). In fact, accumulate returns a vector, but accumulate2 returns a list.
It's actually the intended behaviour because accumulate() should have returned a list all along. But since we're unlikely to ever make such a breaking change, it's probably better to make accumulate2() consistent with accumulate() instead.
lionel-
added a commit
to lionel-/lowliner
that referenced
this issue
Aug 5, 2020
The documentation for
accumulate
andaccumulate2
says that both functions return vectors ("A vector the same length of.x
with the same names as.x
"). In fact,accumulate
returns a vector, butaccumulate2
returns a list.Expected behavior
accumulate2
returns a vectorObserved behavior
accumulate2
returns a listReprex
Created on 2020-07-10 by the reprex package (v0.3.0)
Session Info
The text was updated successfully, but these errors were encountered: