Groups the input integer vector into several groups if the running cumulative sum increases a certain maximum number
Groups the input integer vector into several groups if the running cumulative sum increases a certain maximum number
grouprunningcumsum(x, max)
x |
an integer vector |
max |
the maximum running cumulative size before an extra grouping is done |
An integer vector of the same length of x, indicating groups
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.