Displaying 1 result from an estimated 1 matches for "comment23166107_5897695".
2013 May 01
1
Sum objects in a column between an interval defined by conditions on another column
This comes as an application to this question:
http://stackoverflow.com/questions/5896648/sum-object-in-a-column-between-an-interval-defined-by-another-column/5897695#comment23166107_5897695
What I would like to know is how to adjust the answer if I want to sum the
values in B, for ((A[i+1]-A[i]==0) or (A[i+1]-A[i]==1) or (A[i]-A[i-1]==0)
or (A[i]-A[i-1]==1)) where i is the row index, so basically sum B rows for
A-s that have the same value +/- 1, but not sum the same row twice?
I tri...