int_flip
From lubridate v1.1.0
by Garrett Grolemund
Flip the direction of an interval
Reverses the order of the start date and end date in an interval. The new interval takes place during the same timespan as the original interval, but has the opposite direction.
Usage
int_flip(int)
Arguments
- int
- An interval object
Value
- An interval object
See Also
Examples
int <- new_interval(ymd("2001-01-01"), ymd("2002-01-01"))
# 2001-01-01 UTC--2002-01-01 UTC
int_flip(int)
# 2002-01-01 UTC--2001-01-01 UTC
Community examples
Looks like there are no examples yet.