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 sum() method seems to be taking in the .Data slot in the object, which only contains the seconds element of the period.
The text was updated successfully, but these errors were encountered:
petrbouchal
changed the title
Result of sum() differs between Period and Duration objects - only seconds summed for Periods
Result of sum() incorrect for Period objects
Nov 28, 2020
sum is not a generic unfortunately. I am not sure we want to mess with that. I am opening a discussion on generics package tracker. Let's see what other people think about this.
When calling
sum()
on a Period object, the result returned is incorrect (and in any case different from thesum()
of a Duration or Interval object.)Created on 2020-11-28 by the reprex package (v0.3.0)
The
sum()
method seems to be taking in the.Data
slot in the object, which only contains the seconds element of the period.The text was updated successfully, but these errors were encountered: