checkOverlap: Overlap of two time ranges

View source: R/utils.R

checkOverlapR Documentation

Overlap of two time ranges

Description

Overlap of two time ranges

Usage

checkOverlap(x, y)

Arguments

x

(numeric) must have only two values and x[2] > x[1].

y

(numeric) must have only two values and y[2] > y[1].

Value

(logical) TRUE: both time ranges overlap. FALSE: both time ranges do not overlap.

Author(s)

Shubham Gupta, shubh.gupta@mail.utoronto.ca

ORCID: 0000-0003-3500-8152

License: (c) Author (2020) + GPL-3 Date: 2020-07-17

See Also

getChildFeature

Examples

## Not run: 
checkOverlap(c(9.1, 13.1), c(2.1, 3.1))
checkOverlap(c(1.1, 3.1), c(3.2, 7.1))

## End(Not run)

shubham1637/DIAlignR documentation built on March 29, 2023, 8:45 p.m.