I need to create a linear curve between two non-zero elements of a vector:
df = data.frame(value = c(0,0,0.2,0,0,0,1,0,0))
Here is what I am trying to