fill_event_gaps: Fill Event Gaps

Description Usage Arguments See Also Examples

View source: R/event_operations.R

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

1
2
3
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

1
2
3
4
5
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)

linbin documentation built on May 29, 2017, 6:09 p.m.

Search within the linbin package
Search all R packages, documentation and source code