Identify chained repetitions (streak) of a value in a vector, and count the length of the streak
1 | streak(x, value = 0)
|
x |
A vector |
value |
The value to be counted |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.