getRunIndexList: Get index list of successive runs in a vector.

Description Usage Arguments Value

View source: R/util.R

Description

Get index list of successive runs in a vector.

Usage

1
getRunIndexList(x, na.rm = FALSE)

Arguments

x

A vector.

Value

List of integer vectors, each containing indices for a run of repeated values in the input vector. Each list element takes its name from the corresponding repeated value. Returns an empty list if the input vector is of length zero.


gact/shmootl documentation built on Nov. 11, 2021, 6:23 p.m.