cumsum_reset: Returns a vector whose elements are the cumulative sums of...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Returns a vector whose elements are the cumulative sums of the inputted numeric vector. The argument 'threshold' controls the max/min ceiling/floor of the running sum before it is reset; i.e., if the threshold is set to (+/-) Inf, one would, essentially, compute the base R 'cumsum', albeit much slower

Usage

1
cumsum_reset(x, threshold)

Arguments

x

A numeric vector

threshold

A numeric scalar specifying the cumulative threshold(reset)

Value

A named numeric vector whose names correspond to the group of summed values before the specified threshold


nmatare/quanttools documentation built on May 23, 2019, 9:32 a.m.