Description Usage Arguments Value Examples
Compute per-group cumulative sums
1 | cumsum_g_no_NA(col, first_indices)
|
col |
vector to cumulative sum |
first_indices |
numeric index of first index in each group |
per-group cumulative sum
1 2 3 | v <- c(2, 3, 1, 4, 5)
fi <- c(1, 1, 3, 3, 3)
cumsum_g_no_NA(v, fi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.