event_overlaps {linbin} | R 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
Examples
e <- events(c(0, 10, 15, 25, 30), c(10, 20, 25, 40, 30))
event_overlaps(e)
[Package linbin version 0.1.3 Index]