This is for RStudio .
I attached the question in a picture. If I need the delta from two different rows that at the same time are in two different columns . H