Create interval variable every x rows in dplyr

后端 未结 0 1048
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 01:51

What is the most efficient way to create a new variable that increases by x units after every x rows? For example, I have a data frame:

 d <- data.frame(gr         


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