as.period(<Interval>, unit = "month")
needs to recycle the 0
year
#1109
Labels
bug
an unexpected problem or unintended behavior
Seen here tidyverse/dplyr#6789
A large amount of things rely on the Period internals being recycled to the same length, so I think this is a bug (unlike where POSIXlt allows partially recycled elements, which is just a mess)
Seems relatively easy to fix by going through the
new()
Period constructor, which does recycling andNA
standardization for us.The text was updated successfully, but these errors were encountered: