powered by
gvector
gsumby(v, startPos, stopPos)
startPos
stopPos
v
gsumby(g(1:10), c(1,6), c(5,10)) # g(c(15,40))
Run the code above in your browser using DataLab