getRunIndices: Get indices of successive runs in a run-length encoding.

Description Usage Arguments Value

View source: R/util.R

Description

Get indices of successive runs in a run-length encoding.

Usage

1

Arguments

x

An rle object.

Value

Integer vector of all run indices in the given run-length encoding, which can be used to index into the lengths and values of the given rle object. Returns an empty integer vector if the run-length encoding has zero runs.


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