mincover: Compute minimum size of cover of overlapping intervals.

Description Usage Arguments Details Value Author(s) Examples

View source: R/mincover.R

Description

Compute minimum size of cover of overlapping intervals.

Usage

1
mincover(x.begin, x.end, trunc.begin = NULL, trunc.end = NULL)

Arguments

x.begin

a vector of interval begin positions.

x.end

a vector of interval end positions.

trunc.begin

truncaction value.

trunc.end

truncation value.

Details

Note all arguments are coerced to integers.

Value

An integer, the total size covered by the union of all intervals.

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com

Examples

1
2
3
mincover(c(1, 5, 10, 11, 22), c(8, 17, 13, 19, 25))
## first to fourth intervals all overlap
## third interval 10:13 entirely inside second interval 5:17

tobyjohnson/gtx documentation built on Aug. 30, 2019, 8:07 p.m.