Weird results trying to compute the lengths of a period in months #490
I've got weird results when I try to convert an interval as a period and compute the length of the period in months.
I use lubridate and magrittr
I take as interval the time period between 2012, Jan 1st and 2013, Jan 1st.
When I try to compute the length of the period in days. I've got expected value 325.25 :
When I try to compute the length of the period in years, I've got the expected value 1 :
But when I try to compute the length in months, I've got the inverse of the expected value :
So the outcome is one over the expected value.
Is it a bug ? Am I doing something wrong in my code ?
The text was updated successfully, but these errors were encountered: