Rolling Sum over distinct chunks
chunk.sum(v, n, na.rm = TRUE)
v
Numeric Vector
n
Size of chunk
na.rm
Remove NAs (default=TRUE)