Skip to content
Prev 387575 / 398502 Next

Calculating column differences

Dear Jeff,

Rather than diff-ing a linear vector you're trying to diff values from
two different rows. Also you indicate that you want to place the
diff-ed value in the 'lower' row of a new column. Try this (note
insertion of an initial "zero" row):
ID Score diff
1  0     0    0
2  1     8    8
3  2    12    4
4  3    16    4
5  4    20    4
6  5    24    4
HTH, Bill.

W. Michels, Ph.D.
On Wed, Mar 24, 2021 at 9:49 AM Jeff Reichman <reichmanj at sbcglobal.net> wrote: