sequenize.integer | R Documentation |
Compression of integer sequences to 'start-end' notation.
For instance c(1:5, 8:9)
becomes "1-5, 8-9"
.
## S3 method for class 'integer' sequenize(x, ...)
x |
vector of integers. |
... |
further arguments passed to or from other methods. |
object of class sequenized
The elements of x
should be unique and in ascending order.
sequenize(c(1:4, 8:9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.