I would like to use tidyverse to substract multiples rows in order i.e. 4,8,12,16...
but I could not figure it out. Any suggestion for this?
a 1
b 2
c 3
d 4
e 5
f 6
g 7
h 8
.....
the design output is
d 4
h 8
....
I would like to use tidyverse to substract multiples rows in order i.e. 4,8,12,16...
but I could not figure it out. Any suggestion for this?
a 1
b 2
c 3
d 4
e 5
f 6
g 7
h 8
.....
the design output is
d 4
h 8
....