int_flip {lubridate} | R Documentation |
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.
int_flip(int)
int |
An interval object |
An interval object
int_shift
, int_start
, int_end
,
int_length
int <- 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