Learn R Programming

litteR (version 1.0.0)

sequenize.integer: 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 integer
sequenize(x, ...)

Value

object of class sequenized

Arguments

x

vector of integers.

...

further arguments passed to or from other methods.

Examples

Run this code
sequenize(c(1:4, 8:9))

Run the code above in your browser using DataLab