Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 class '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.

Author(s)

Henrik Bengtsson

See Also

Examples

## Not run: See example(seqToIntervals)

R.utils

Various Programming Utilities

v2.10.1
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.