R create new variable with condition that multiple rows are equal

后端 未结 0 1919
醉话见心
醉话见心 2021-01-13 18:22

I got the following dataset:

   id day time state
1   A   1    1     0
2   A   1    2     1
3   A   1    3     1
4   A   2    1     0
5   A   2    2     0
6           


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