fill_event_gaps: Fill Event Gaps

View source: R/event_operations.R

fill_event_gapsR Documentation

Fill Event Gaps

Description

fill_event_gaps fills gaps below a maximum length with empty events. collapse_event_gaps shifts event endpoints to close gaps below a maximum length.

Usage

fill_event_gaps(e, max.length = Inf)

collapse_event_gaps(e, max.length = Inf)

Arguments

e

An event table.

max.length

The maximum length of gaps to be filled or closed.

See Also

event_gaps

Examples

e <- events(c(1, 4), c(2, 5), x = 1)
fill_event_gaps(e)
fill_event_gaps(e, max.length = 1)
collapse_event_gaps(e)
collapse_event_gaps(e, max.length = 1)

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