Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

grouprunningcumsum

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


Description

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

Usage

grouprunningcumsum(x, max)

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

Basic Statistical Functions for Package 'ff'

v0.13.3
GPL-3
Authors
Edwin de Jonge, Jan Wijffels, Jan van der Laan
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.