rsi: Run Start Indices

View source: R/rsi.R

rsiR Documentation

Run Start Indices

Description

Find the starting indices of runs in a vector.

Usage

  rsi(x)

Arguments

x

a vector of data.

Value

a vector of indices indicating starting points for runs

Examples

rsi(c(0,0,0,1,2,2,3,3,3,3,3,4))

Rmisc documentation built on May 2, 2022, 5:05 p.m.

Related to rsi in Rmisc...