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
Reduce calls as.list on the input, so that lubridate's union is not even called on those inputs.
There are two approaches, either extend union to accept additional arguments and handle this case internally, or implement as.list( method for interval objects.
I want to obtain the union of many (more than 2) intervals:
That's the correct result.
But why lubridate::union does not work with Reduce?
The intervals objects seem to get converted to numeric too son (before applying the union).
Related to: http://stackoverflow.com/questions/32944273/lubridate-how-to-calculate-the-union-of-many-intervals
The text was updated successfully, but these errors were encountered: