Learn R Programming

R.utils (version 2.6.0)

intervalsToSeq.matrix: Generates a vector of indices from a matrix of intervals

Description

Generates a vector of indices from a matrix of intervals.

Usage

# S3 method for matrix
intervalsToSeq(fromTo, sort=FALSE, unique=FALSE, ...)

Arguments

fromTo

An Nx2 integer matrix.

sort

If TRUE, the returned indices are ordered.

unique

If TRUE, the returned indices are unique.

...

Not used.

See Also

seqToIntervals().

Examples

Run this code
# NOT RUN {
See example(seqToIntervals)
# }

Run the code above in your browser using DataLab