Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rsi

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

Rmisc: Ryan Miscellaneous

v1.5
GPL-3
Authors
Ryan M. Hope <rmh3093@gmail.com>
Initial release
2013-10-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.