sorted_events: Sorted Events

sort_eventsR Documentation

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

e <- events(c(1, 1, 3, 2), c(2, 1, 4, 3))
is_unsorted_events(e)
sort_events(e)

ezwelty/linbin documentation built on April 19, 2023, 8:41 a.m.