seqToIntervals

0th

Percentile

Gets all contigous intervals of a vector of indices

Gets all contigous intervals of a vector of indices.

Usage
## S3 method for class 'default}(idx, ...)':
seqToIntervalsundefined

idx{A vector of integer indices.}
  ...{Not used.}

[object Object]

print(seqToIntervals(1:10))  # [1 10]
  print(seqToIntervals(c(1:10, 15:18, 20)))  # [1 10; 15 18; 20 20]


attribute
Aliases
  • seqToIntervals.default
  • seqToIntervals
Documentation reproduced from package R.utils, version 0.7.9, License: LGPL version 2.1 or newer (the releases)

Community examples

Looks like there are no examples yet.