Learn R Programming

linbin (version 0.1.3)

sort_events: Sorted Events

Description

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.

Usage

sort_events(e)

is_unsorted_events(e)

Arguments

e

An event table.

Examples

Run this code
# 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