powered by
sort_events sorts events by ascending from, then ascending to. is_unsorted_events tests whether the events are not sorted, without the cost of sorting them.
sort_events
from
to
is_unsorted_events
sort_events(e)is_unsorted_events(e)
is_unsorted_events(e)
An event table.
# NOT RUN { e <- events(c(1, 1, 3, 2), c(2, 1, 4, 3)) is_unsorted_events(e) sort_events(e) # }
Run the code above in your browser using DataLab