Learn R Programming

timetools (version 1.15.3)

overlapping: Test if any interval of a time intervals object intersect another

Description

For objects based on time intervals. Test if any interval overlap another one. Because the test can be ressource consuming, it stops at the first case encoutered that does not satisfy this condition. The two indices corresponding are printed.

Usage

overlapping(x, idx, ...)

# S4 method for TimeIntervalDataFrame,ANY overlapping(x, idx, ...) # S4 method for TimeIntervalDataFrame,logical overlapping(x, idx, ...)

Value

logical indicating if 'x' has any overlapping time interval.

Arguments

x

object to test for overlapping

idx

Logical set to TRUE if indexes of all overlapping intervals are to retrieve.

...

arguments to or from other methods

See Also

TimeIntervalDataFrame, POSIXcti