Change value of subsequent rows based on value of row

前端 未结 0 1623
再見小時候
再見小時候 2020-11-30 21:23

I want to replace the 3 values following a 1 by a 1, and replace all the remaining NAs by 0.

My Data (reproductible exemple)

datadf          


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