Learn R Programming

linbin (version 0.1.3)

event_overlaps: 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.

Value

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

Details

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

See Also

event_coverage.

Examples

Run this code
# NOT RUN {
e <- events(c(0, 10, 15, 25, 30), c(10, 20, 25, 40, 30))
event_overlaps(e)
# }

Run the code above in your browser using DataLab