assign_id: Index a Vector by cumulative Sum

assign_idR Documentation

Index a Vector by cumulative Sum

Description

Index a Vector by cumulative Sum

Usage

assign_id(a, athres)

Arguments

a

a vector of values

athres

the ideal size of each index. Cummulative sums will get as close to this value without exceeding it

Value

a vector of length(a)


NOAA-OWP/hyAggregate documentation built on Aug. 13, 2022, 1:36 p.m.