R Conditional subtraction from the next unequal value

前端 未结 0 1720
醉话见心
醉话见心 2020-12-12 16:21

Given a larger data frame with around 300k+ rows and 14 columns in the following form:

df <- data.frame(team_id = c(rep(1,10),rep(2,10),rep(3,10),rep(4,10)         


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