Learn R Programming

sstModel (version 1.0.0)

intToGroups: Ordered Vector of Integers to List of consecutive integers

Description

this helper function helps to group consecutive integers in a sequence of integers.

Usage

intToGroups(x)

Arguments

x

a vector of integers.

Value

a list of integer vectors.