find.spacings | R Documentation |
Computes the spacings or gaps between successes in a vector of binary observations (0's and 1's)
find.spacings(x)
x |
vector of 0's and 1's |
A list with components
y |
vector of spacings |
I |
vector indicating if spacings are complete or right censored |
Jim Albert
Albert, J. (2013), Looking at Spacings to Access Streakiness, Journal of Quantitative Analysis of Sports, Vol 9, Issue 2, 151-163.
y <- c(0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0)
find.spacings(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.