grouprunningcumsum: Groups the input integer vector into several groups if the...

Description Usage Arguments Value

View source: R/auxilary.R

Description

Groups the input integer vector into several groups if the running cumulative sum increases a certain maximum number

Usage

1

Arguments

x

an integer vector

max

the maximum running cumulative size before an extra grouping is done

Value

An integer vector of the same length of x, indicating groups


ffbase documentation built on Feb. 27, 2021, 5:06 p.m.