Lead/lag in R but only for rows that meet a yes/no condition

后端 未结 0 1141
我寻月下人不归
我寻月下人不归 2021-01-12 09:49

I have a dataset of patient visits that looks like this:

   visit infection treatment
1      1  negative         1
2      2  negative         1
3      3  posi         


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