event_overlaps: Event Overlaps

View source: R/event_metrics.R

event_overlapsR Documentation

Event Overlaps

Description

Returns the number of events on each interval. Useful for sampling the original data with sample_events at the highest possible resolution that nevertheless flattens overlapping events.

Usage

event_overlaps(e)

Arguments

e

An event table.

Details

Point events are preserved and line events are cut as necessary at the endpoints of other point or line events.

Value

An endpoint-only event table with column "n" listing the number of overlapping events on that interval.

See Also

event_coverage.

Examples

e <- events(c(0, 10, 15, 25, 30), c(10, 20, 25, 40, 30))
event_overlaps(e)

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