assign_id | R Documentation |
Index a Vector by cumulative Sum
assign_id(a, athres)
a |
a vector of values |
athres |
the ideal size of each index. Cummulative sums will get as close to this value without exceeding it |
a vector of length(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.