How to remove sequences from longitudal data based on a given condition?

前端 未结 0 698
梦毁少年i
梦毁少年i 2021-01-06 06:43

I have a vector of consecutive states (you can only go from 3 to 4, from 4 to 5 etc., and there\'s no way back):

cons_states <- c(3,4,5,6)

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