I have:
id time.1 time.2 time.3
1 2 3 4.5
2 4 6 7
3 2 2.1 2.8
And I would like subtract each column from the next one, to get:
id time.1 diff.2.1 time.2 diff.3.2 time.3
1 2 1 3 1.5 4.5
2 4 2 6 1 7
3 2 .1 2.1 .7 2.8