Create a linear curve between non-zero elements of a vector

后端 未结 0 1070
南方客
南方客 2021-02-20 07:58

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题