sequenize.integer {litteR} | R Documentation |
Sequenize Integer Sequence
Description
Compression of integer sequences to 'start-end' notation.
For instance c(1:5, 8:9)
becomes "1-5, 8-9"
.
Usage
## S3 method for class 'integer'
sequenize(x, ...)
Arguments
x |
vector of integers. |
... |
further arguments passed to or from other methods. |
Value
object of class sequenized
Note
The elements of x
should be unique and in ascending order.
Examples
sequenize(c(1:4, 8:9))
[Package litteR version 1.0.0 Index]