Cumulative sum of uninterrupted '1'
integer vector to be used
Returns a vector whose elements are the cumulative sums of uninterrupted entries equal to 1 in an integer vector
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.