Description Usage Arguments Details Value Examples

Cumulative sum of uninterrupted '1'

1 | ```
cumsum1(x)
``` |

`x` |
integer vector to be used |

Returns a vector whose elements are the cumulative sums of uninterrupted entries equal to 1 in an integer vector

integer vector

1 2 3 4 5 6 7 8 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.