sequenize.integer: Sequenize Integer Sequence

View source: R/utils.R

sequenize.integerR 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))

litteR documentation built on Aug. 27, 2022, 1:05 a.m.