cummax_g: Compute per-group cumulative maxs

Description Usage Arguments Value Examples

Description

Compute per-group cumulative maxs

Usage

1
cummax_g(col, first_indices)

Arguments

col

vector to cumulative max

first_indices

numeric index of first index in each group

Value

per-group cumulative max

Examples

1
2
3
v <- c(2, 3, 1, 7, 5)
fi <- c(1, 1, 3, 3, 3)
cummax_g(v, fi)

WinVector/FastBaseR documentation built on May 21, 2019, 4:04 a.m.