event_overlaps: Event Overlaps

Description Usage Arguments Details Value See Also Examples

View source: R/event_metrics.R

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

1

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

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

linbin documentation built on April 20, 2021, 5:07 p.m.